diff options
author | Dom Lachowicz <doml@src.gnome.org> | 2006-03-16 21:45:57 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2006-03-16 21:45:57 +0000 |
commit | 03231d2be70b4a2ef608dd65e9c64fea83ec8e51 (patch) | |
tree | d55f25f8c22dda7ae9efe2b54bc3475d512ae3e2 /rsvg-convert.c | |
parent | 77cb8877028fc2108c4fb960c03e138c64b3b2a8 (diff) | |
download | librsvg-03231d2be70b4a2ef608dd65e9c64fea83ec8e51.tar.gz |
rsvg-convert 'crashes' because it calls g_error() on an error condition,
* rsvg-convert.c: rsvg-convert 'crashes' because it calls g_error()
on an error condition, instead of fprintf(stderr, ...) (#334813)
Diffstat (limited to 'rsvg-convert.c')
-rw-r--r-- | rsvg-convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rsvg-convert.c b/rsvg-convert.c index e9313311..522fa246 100644 --- a/rsvg-convert.c +++ b/rsvg-convert.c @@ -160,7 +160,7 @@ main (int argc, const char **argv) if (bVersion != 0) { - g_print (_("rsvg-cairo version %s\n"), VERSION); + printf (_("rsvg-cairo version %s\n"), VERSION); return 0; } @@ -169,7 +169,7 @@ main (int argc, const char **argv) output_file = fopen (output, "wb"); if (!output_file) { - g_print (_("Error saving to file %s\n"), output); + fprintf (stderr, _("Error saving to file %s\n"), output); exit (1); } } @@ -185,7 +185,7 @@ main (int argc, const char **argv) } else if (n_args > 1 && (!format || !strcmp (format, "png"))) { - g_print (_("Multiple SVG files are only allowed for PDF, PS and SVG output.\n")); + fprintf (stderr, _("Multiple SVG files are only allowed for PDF, PS and SVG output.\n")); exit (1); } @@ -273,7 +273,7 @@ main (int argc, const char **argv) #endif else { - g_error ("Unknown output format."); + fprintf (stderr, _("Unknown output format.")); exit (1); } |