summaryrefslogtreecommitdiff
path: root/net/wackamole/files/patch-alarm.c
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-06-11 14:25:01 +0000
committerJohn Marino <marino@FreeBSD.org>2014-06-11 14:25:01 +0000
commitf2aad7685cec3bfa524ce8048f1c372dc6efed93 (patch)
tree0b3a17df0b8d047f5dbb7357fc22485b36e5aa57 /net/wackamole/files/patch-alarm.c
parent- fix LIB_DEPENDS (after adding libtool:keepla to devel/apr1) (diff)
Resurrect net/wackmole and upgrade version 2.14 => 2.15
This port was removed because it's dependency "spread" was removed. Spread has returned, and now this one returns with a new version. * maintainership passed to submitter (old version was not unmaintained) * pkg-descr rewritten, WWW updated * LIB_DEPENDS format updated * distfile mirror added * USES+= tar:xz used * patches regenerated PR: 189403 Submitted by: Chris Hutchison Fixes by: marino
Notes
Notes: svn path=/head/; revision=357481
Diffstat (limited to 'net/wackamole/files/patch-alarm.c')
-rw-r--r--net/wackamole/files/patch-alarm.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wackamole/files/patch-alarm.c b/net/wackamole/files/patch-alarm.c
new file mode 100644
index 000000000000..7034c83282d1
--- /dev/null
+++ b/net/wackamole/files/patch-alarm.c
@@ -0,0 +1,20 @@
+--- alarm.c.orig 2014-05-06 16:24:44.652074671 -0700
++++ alarm.c 2014-05-06 16:26:49.173062394 -0700
+@@ -93,7 +93,7 @@
+ timestamp[length] = ' ';
+ #ifdef HAVE_SYSLOG_H
+ if(syslog_flag)
+- syslog(LOG_NOTICE, timestamp);
++ syslog(LOG_NOTICE, "%s", timestamp);
+ else
+ #endif
+ fwrite(timestamp, length+1, sizeof(char), stdout);
+@@ -105,7 +105,7 @@
+ int len = strlen(message)+100;
+ s = malloc(len);/*estimation*/
+ vsnprintf(s,len,message, ap);
+- syslog(LOG_NOTICE, s);
++ syslog(LOG_NOTICE, "%s", s);
+ free(s);
+ }
+ else