[patch] pango-viewer segfaults on non-existing file
- From: ilmari ping uio no (Dagfinn Ilmari Mannsåker)
- To: gtk-i18n-list gnome org
- Subject: [patch] pango-viewer segfaults on non-existing file
- Date: Sun, 10 Nov 2002 03:33:39 +0100
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]