diff options
author | cbiere <cbiere> | 2007-01-07 23:53:24 +0000 |
---|---|---|
committer | cbiere <cbiere> | 2007-01-07 23:53:24 +0000 |
commit | 46feba117fa2af1006d76000191f8137b1278336 (patch) | |
tree | a9cce25207163f670e8ae67ccb12ff71af190c9d /audio | |
parent | 4f3cc44cf680fab832df314a09c01ae06aea3594 (diff) | |
download | pkgsrc-46feba117fa2af1006d76000191f8137b1278336.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-ag | 4 |
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; |