summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorcbiere <cbiere>2007-01-07 23:53:24 +0000
committercbiere <cbiere>2007-01-07 23:53:24 +0000
commit6ec6d5dc488fc74631b475d2035aa61d21e95ea1 (patch)
treea9cce25207163f670e8ae67ccb12ff71af190c9d /audio
parent5716620f6e3b8f1733c61dcecaba4fab31b63a7f (diff)
downloadpkgsrc-6ec6d5dc488fc74631b475d2035aa61d21e95ea1.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;