fixes download file name postfix (closes #383)
authorRobert Timm <mail@rtti.de>
Thu, 4 May 2017 17:40:10 +0000 (19:40 +0200)
committerRobert Timm <mail@rtti.de>
Thu, 4 May 2017 17:40:30 +0000 (19:40 +0200)
src/main.c

index 8a13d57..dccd867 100644 (file)
@@ -163,7 +163,7 @@ gboolean vb_download_set_destination(Client *c, WebKitDownload *download,
         /* Construct a new complete odwnload filepath with suffic before the
          * file extension. */
         do {
-            num = g_strdup_printf("%d", i++);
+            num = g_strdup_printf("_%d", i++);
             g_string_assign(tmp, file);
             g_string_insert(tmp, suffix, num);
             g_free(num);