freebsd-ports/audio/wmix/files/patch-wmix.c
Roman Bogorodskiy 46f5ae70a4 Make it work with new -CURRENT's malloc().
Submitted by:	danfe
2006-01-24 15:17:42 +00:00

19 lines
486 B
C

--- wmix.c.orig Wed Jul 14 18:15:17 2004
+++ wmix.c Wed Jul 14 18:15:26 2004
@@ -24,7 +24,6 @@
#include <string.h>
#include <signal.h>
#include <string.h>
-#include <getopt.h>
#include <unistd.h>
#include <X11/X.h>
@@ -134,7 +133,7 @@
}
/* handle writing PID file, silently ignore if we can't do it */
- pid = calloc(1, strlen(home) + 10);
+ pid = calloc(1, strlen(home) + 11);
sprintf(pid, "%s/.wmix.pid", home);
fp = fopen(pid, "w");
if (fp) {