9ddcac
diff -urNp old/app/xcf/xcf.c new/app/xcf/xcf.c
9ddcac
--- old/app/xcf/xcf.c	2017-04-30 23:47:39.000000000 +0200
9ddcac
+++ new/app/xcf/xcf.c	2018-01-04 11:56:31.399888783 +0100
9ddcac
@@ -318,7 +318,8 @@ xcf_load_invoker (GimpProcedure      *pr
9ddcac
         {
9ddcac
           info.file_version = 0;
9ddcac
         }
9ddcac
-      else if (id[9] == 'v')
9ddcac
+      else if (id[9] == 'v' &&
9ddcac
+               id[13] == '\0')
9ddcac
         {
9ddcac
           info.file_version = atoi (id + 10);
9ddcac
         }