summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorcbiere <cbiere@pkgsrc.org>2007-01-07 23:53:24 +0000
committercbiere <cbiere@pkgsrc.org>2007-01-07 23:53:24 +0000
commit5643b5ee3092dfac856bfe78924d3014546c123b (patch)
treea9cce25207163f670e8ae67ccb12ff71af190c9d /audio
parent42a225cb35a4bb24a30cc3f1ffe7728d2192f027 (diff)
downloadpkgsrc-5643b5ee3092dfac856bfe78924d3014546c123b.tar.gz
The original author must have assumed d_reclen referred to
strlen(entr->d_name). Thus use this instead of the non-portable d_namlen field.
Diffstat (limited to 'audio')
-rw-r--r--audio/mp3blaster/patches/patch-ag4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/mp3blaster/patches/patch-ag b/audio/mp3blaster/patches/patch-ag
index 948c56e17d5..1fc9d1fdde4 100644
--- a/audio/mp3blaster/patches/patch-ag
+++ b/audio/mp3blaster/patches/patch-ag
@@ -1,4 +1,4 @@
-$NetBSD: patch-ag,v 1.4 2005/12/11 22:22:37 joerg Exp $
+$NetBSD: patch-ag,v 1.5 2007/01/07 23:53:24 cbiere Exp $
--- src/main.cc.orig 2003-09-09 21:22:55.000000000 +0000
+++ src/main.cc
@@ -20,7 +20,7 @@ $NetBSD: patch-ag,v 1.4 2005/12/11 22:22:37 joerg Exp $
{
DIR *dir2 = NULL;
- char *newpath = (char *)malloc((entry->d_reclen + 2 + strlen(path)) *
-+ char *newpath = (char *)malloc((sizeof(*entry) + entry->d_namlen + 2 + strlen(path)) *
++ char *newpath = (char *)malloc((strlen(entry->d_name) + 2 + strlen(path)) *
sizeof(char));
PTH_YIELD;