[patch] pango-viewer segfaults on non-existing file



This patch fixes a segfault on Solaris when trying to view a
non-existing file with pango-viewer.

--- pango-1.0.5/examples/viewer-qt.cc~	Thu Nov 29 17:41:56 2001
+++ pango-1.0.5/examples/viewer-qt.cc	Sun Nov 10 02:55:32 2002
@@ -169,7 +169,7 @@
   
   if (!file.open (IO_ReadOnly))
     {
-      fprintf (stderr, "Cannot open file '%s'\n");
+      fprintf (stderr, "Cannot open file '%s'\n", (const char *) name);
       return;
     }
   

-- 
ilmari





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]