[poppler] glib/poppler-document.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Jun 5 01:08:18 PDT 2009


 glib/poppler-document.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 291bafe64c8755fe5f85a51b184ac6e3d3170e1d
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Fri Jun 5 10:07:16 2009 +0200

    [glib] Use g_strerror instead of strerror
    
    Fixes bug #22095.

diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index 17eec51..dfdfb80 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -85,7 +85,7 @@ _poppler_document_new_from_pdfdoc (PDFDoc  *newDoc,
         fopen_errno = newDoc->getFopenErrno();
         g_set_error (error, G_FILE_ERROR,
 		     g_file_error_from_errno (fopen_errno),
-		     strerror(fopen_errno));
+		     "%s", g_strerror (fopen_errno));
 	break;
       case errBadCatalog:
         g_set_error (error, POPPLER_ERROR,


More information about the poppler mailing list