$OpenBSD: patch-monitor_c,v 1.2 2011/06/02 18:53:39 rpointel Exp $ --- monitor.c.orig Mon Mar 14 08:38:53 2011 +++ monitor.c Tue May 31 11:15:57 2011 @@ -89,7 +89,7 @@ return 0; } - snprintf(filename + filename_offset, MAX_FILENAME_SIZE, "%ld.txt.gz", time(NULL)); + snprintf(filename + filename_offset, MAX_FILENAME_SIZE, "%d.txt.gz", time(NULL)); if ((handle = open(filename, O_CREAT | O_APPEND | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP)) == -1) { return -1; }