]> git.street.me.uk Git - andy/viking.git/commitdiff
Add requested sentinel and correct gdk_pixbuf_save call
authorGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sat, 23 Jun 2007 16:18:05 +0000 (16:18 +0000)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Sat, 23 Jun 2007 16:18:05 +0000 (16:18 +0000)
A "sentinel" is a NULL value at the end of variable argument list.

src/babel.c
src/expedia.c

index 33e7bbe860f76dc02979a53a12cb3dbb9c663a01..1661a2d7ef70f03dba164f611dbaa5eee2a9d62c 100644 (file)
@@ -33,7 +33,7 @@ gboolean a_babel_convert( VikTrwLayer *vt, const char *babelargs, BabelStatusFun
   FILE *f;
   gchar *name_src;
   gboolean ret = FALSE;
-  gchar *bargs = g_strconcat(babelargs, " -i gpx");
+  gchar *bargs = g_strconcat(babelargs, " -i gpx", NULL);
 
   if ((fd_src = g_file_open_tmp("tmp-viking.XXXXXX", &name_src, NULL)) < 0) {
     ret = FALSE;
index cd0dfa9db8bc5976739e64263053906f0ef36ccb..6352559ecc72c3b6e50b35685a9c35c204efc24b 100644 (file)
@@ -111,7 +111,7 @@ void expedia_snip ( const gchar *file )
   cropped = gdk_pixbuf_new_subpixbuf ( old, WIDTH_BUFFER, HEIGHT_BUFFER,
                               width - 2*WIDTH_BUFFER, height - 2*HEIGHT_BUFFER );
 
-  gdk_pixbuf_save ( cropped, file, "png", NULL, NULL, &gx );
+  gdk_pixbuf_save ( cropped, file, "png", &gx, NULL );
   if ( gx ) {
     g_warning ( "Couldn't save EXPEDIA image file (right after successful download! Please report and delete image file!): %s", gx->message );
     g_error_free ( gx );