snips.sh

 1diff --git a/src/misc.c b/src/misc.c
 2index 8511ca2..7866c7b 100644
 3--- a/src/misc.c
 4+++ b/src/misc.c
 5@@ -1512,11 +1512,11 @@ cr_append_pid_and_datetime(const char *str, const char *suffix)
 6     gettimeofday(&tv, NULL);
 7     timeinfo = localtime (&(tv.tv_sec));
 8     strftime(datetime, 80, "%Y%m%d%H%M%S", timeinfo);
 9-    gchar *result = g_strdup_printf("%s%jd.%s.%ld%s",
10+    gchar *result = g_strdup_printf("%s%jd.%s.%jd%s",
11                                     str ? str : "",
12                                     (intmax_t) getpid(),
13                                     datetime,
14-                                    tv.tv_usec,
15+                                    (intmax_t) tv.tv_usec,
16                                     suffix ? suffix : "");
17     return result;
18 }