diff options
author | novel <novel@FreeBSD.org> | 2006-01-24 23:17:42 +0800 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2006-01-24 23:17:42 +0800 |
commit | cad4a582c46de1caf8b067ef6d68e6ffb558cdfc (patch) | |
tree | 89966710d0b75bfa6c3af73bfbca752d29f40a7e /audio | |
parent | 526d8a29396d66ee79c02f4094b3dbe4dd5fcc23 (diff) | |
download | freebsd-ports-gnome-cad4a582c46de1caf8b067ef6d68e6ffb558cdfc.tar.gz freebsd-ports-gnome-cad4a582c46de1caf8b067ef6d68e6ffb558cdfc.tar.zst freebsd-ports-gnome-cad4a582c46de1caf8b067ef6d68e6ffb558cdfc.zip |
Make it work with new -CURRENT's malloc().
Submitted by: danfe
Diffstat (limited to 'audio')
-rw-r--r-- | audio/wmix/files/patch-wmix.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/audio/wmix/files/patch-wmix.c b/audio/wmix/files/patch-wmix.c index 6c095f13173b..9483511f3894 100644 --- a/audio/wmix/files/patch-wmix.c +++ b/audio/wmix/files/patch-wmix.c @@ -8,3 +8,12 @@ #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) { |