pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/mp3blaster/patches The original author must have...
details: https://anonhg.NetBSD.org/pkgsrc/rev/df0c8a822504
branches: trunk
changeset: 523432:df0c8a822504
user: cbiere <cbiere%pkgsrc.org@localhost>
date: Sun Jan 07 23:53:24 2007 +0000
description:
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:
audio/mp3blaster/patches/patch-ag | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d64fc00ef0bd -r df0c8a822504 audio/mp3blaster/patches/patch-ag
--- a/audio/mp3blaster/patches/patch-ag Sun Jan 07 19:02:12 2007 +0000
+++ b/audio/mp3blaster/patches/patch-ag Sun Jan 07 23:53:24 2007 +0000
@@ -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 @@
{
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;
Home |
Main Index |
Thread Index |
Old Index