summaryrefslogtreecommitdiff
path: root/audio/libmpd/patches
diff options
context:
space:
mode:
authorwiz <wiz>2005-11-22 19:26:08 +0000
committerwiz <wiz>2005-11-22 19:26:08 +0000
commitacefbd51442611aa30528624ceaf0f6b6696c2e4 (patch)
tree4f67355ee05158328bdd6d6acab35c4bceea7047 /audio/libmpd/patches
parent12cfd2e711a3e2c0478075d61de8c5f281dca338 (diff)
downloadpkgsrc-acefbd51442611aa30528624ceaf0f6b6696c2e4.tar.gz
Initial import of libmpd:
libmpd is trying to provide a easy to use high level, callback based access to mpd. It tries to be fast and keep the data transfer with mpd to the minimum. To do this it implements queues for deleting and adding songs. There is extra functionallity added for the ease of the programmer.
Diffstat (limited to 'audio/libmpd/patches')
-rw-r--r--audio/libmpd/patches/patch-aa14
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/libmpd/patches/patch-aa b/audio/libmpd/patches/patch-aa
new file mode 100644
index 00000000000..195bcb84dbb
--- /dev/null
+++ b/audio/libmpd/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/22 19:26:08 wiz Exp $
+
+--- src/libmpd.c.orig 2005-08-14 20:06:20.000000000 +0200
++++ src/libmpd.c
+@@ -2729,7 +2729,8 @@ regex_t ** mpd_misc_tokenize(char *strin
+ char * temp=NULL;
+ result = (regex_t **)realloc(result,(tokens+2)*sizeof(regex_t *));
+ result[tokens] = malloc(sizeof(regex_t));
+- temp = (char *)strndup((const char *)&string[bpos], i-bpos);
++ temp = (char *)strdup((const char *)&string[bpos]);
++ temp[i-bpos] = '\0';
+ if(regcomp(result[tokens], temp, REG_EXTENDED|REG_ICASE|REG_NOSUB))
+ {
+ result[tokens+1] = NULL;