Fix #486: Build error
authorColin Clark <colin.clark@cclark.uk>
Thu, 25 May 2017 20:17:08 +0000 (21:17 +0100)
committerColin Clark <colin.clark@cclark.uk>
Thu, 25 May 2017 20:17:08 +0000 (21:17 +0100)
https://github.com/BestImageViewer/geeqie/issues/486

Bug solution from Guillaume Castagnino

src/misc.c

index 0f74402..f0817c1 100644 (file)
@@ -147,7 +147,11 @@ gchar *decode_geo_parameters(const gchar *input_text)
                        }
                else
                        {
-                       fgets(buf, BUFSIZE, fp);
+                       while (fgets(buf, BUFSIZE, fp))
+                               {
+                               DEBUG_1("Output: %s", buf);
+                               }
+
                        message = g_strconcat(buf, NULL);
 
                        if(pclose(fp))