* http://beefy10.nyi.freebsd.org/data/112i386-default/507745/logs/ot-recorder-0.8.4_1.log Issue reported upstream and patch obtained from there: * https://github.com/owntracks/recorder/issues/314
12 lines
371 B
C
12 lines
371 B
C
--- misc.c.orig 2019-08-01 13:54:47 UTC
|
|
+++ misc.c
|
|
@@ -62,7 +62,8 @@ void monitorhook(struct udata *userdata, time_t now, c
|
|
static UT_string *us = NULL;
|
|
|
|
utstring_renew(us);
|
|
- utstring_printf(us, "%ld %s\n", now, topic);
|
|
+ utstring_printf(us, "%ld %s\n", (long)now, topic);
|
|
+
|
|
|
|
snprintf(mpath, sizeof(mpath), "%s/monitor", STORAGEDIR);
|
|
safewrite(mpath, UB(us));
|