summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-04-23 17:28:17 +0000
committertron <tron@pkgsrc.org>2001-04-23 17:28:17 +0000
commit0222877d6462cf901d47976bf9ad121b6268dc3c (patch)
treeb00d10d72f588c4a4004678858af91178d510885 /audio
parente97e36d958ee573ca658af8679a7b56984008726 (diff)
downloadpkgsrc-0222877d6462cf901d47976bf9ad121b6268dc3c.tar.gz
Fix bugs in memory management.
Diffstat (limited to 'audio')
-rw-r--r--audio/nbc-vbi/distinfo3
-rw-r--r--audio/nbc-vbi/patches/patch-ad38
2 files changed, 40 insertions, 1 deletions
diff --git a/audio/nbc-vbi/distinfo b/audio/nbc-vbi/distinfo
index 62e89b30fa5..cb18a211522 100644
--- a/audio/nbc-vbi/distinfo
+++ b/audio/nbc-vbi/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2001/04/22 09:59:33 tron Exp $
+$NetBSD: distinfo,v 1.4 2001/04/23 17:28:17 tron Exp $
SHA1 (nbc-vbi-0.32-Source.tgz) = 97494878d782c150185e07dc294f4315c0914393
Size (nbc-vbi-0.32-Source.tgz) = 25206 bytes
SHA1 (patch-aa) = d213cf28cb215983c8399bf542eaea575bb73f13
SHA1 (patch-ab) = cb7dd5e9c1006e8f0ce9971d8c2419d832289c11
SHA1 (patch-ac) = 5b18c6d8d26df6daabc7409db61776bb96d2b227
+SHA1 (patch-ad) = 0fc8a360a59dc63245650ca3c41e7cd7a961e67a
diff --git a/audio/nbc-vbi/patches/patch-ad b/audio/nbc-vbi/patches/patch-ad
new file mode 100644
index 00000000000..715f16c3d33
--- /dev/null
+++ b/audio/nbc-vbi/patches/patch-ad
@@ -0,0 +1,38 @@
+$NetBSD: patch-ad,v 1.1 2001/04/23 17:28:18 tron Exp $
+
+--- src/nbc-vbi.c.orig Sat Nov 11 10:12:22 2000
++++ src/nbc-vbi.c Mon Apr 23 19:24:29 2001
+@@ -284,7 +284,7 @@
+ }
+ fclose(fp);
+ ptr = 0x0; //finish buffer with double zero
+- realloc(filter, filtersize + 1);
++ filter = realloc(filter, filtersize + 1);
+ return (1);
+ }
+
+@@ -544,6 +544,7 @@
+ mp3.received = 0;
+ mp3.playlist = 1;
+ free(mp3.plptr); // free old playlist
++ mp3.plptr = NULL;
+ }
+
+ if (mp3.size != 0) // dont write very first file
+@@ -662,7 +663,6 @@
+ {
+ memset(mp3.plentry, 0, 20 * sizeof(char *));
+ mp3.plptr = (char *) malloc(TMPSIZE); // alloc mem for pl
+- memset(mp3.plptr, 0, TMPSIZE);
+ memcpy(mp3.plptr, data, TMPSIZE);
+ ptr = mp3.plptr;
+
+@@ -678,7 +678,7 @@
+ }
+
+
+- realloc(mp3.plptr, plsize); // adjust its size
++ mp3.plptr = realloc(mp3.plptr, plsize); // adjust its size
+ print_playlist(mp3.plentry);
+
+ memset(mp3.filename, 0, 256);