openbsd-ports/www/hiawatha/patches/patch-monitor_c

13 lines
475 B
Plaintext
Raw Normal View History

$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 @@
2010-09-22 11:03:45 -04:00
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) {
2010-09-22 11:03:45 -04:00
return -1;
}