Date: Tue, 27 Nov 2007 11:10:02 GMT From: Nikos Ntarmos <ntarmos@ceid.upatras.gr> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/118138: [Update] Updating multimedia/shell-fm to version 0.4 Message-ID: <200711271110.lARBA2ZX002722@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/118138; it has been noted by GNATS. From: Nikos Ntarmos <ntarmos@ceid.upatras.gr> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/118138: [Update] Updating multimedia/shell-fm to version 0.4 Date: Tue, 27 Nov 2007 12:45:28 +0200 Explicitly zeroing the last byte in strndup and bumping PORTREVISION. This is to be applied after the above patch. Thanks. \n\n --- shell-fm-v0.4.1.diff begins here --- diff --git a/shell-fm/Makefile b/shell-fm/Makefile index 1bffd5c..0184223 100644 --- a/shell-fm/Makefile +++ b/shell-fm/Makefile @@ -7,6 +7,7 @@ PORTNAME= shell-fm PORTVERSION= 0.4 +PORTREVISION= 1 PORTEPOC= 1 CATEGORIES= multimedia MASTER_SITES= http://ntarmos.dyndns.org/Software/FreeBSD/ diff --git a/shell-fm/files/patch-strndup.c b/shell-fm/files/patch-strndup.c index 58ef9f1..a23f3c0 100644 --- a/shell-fm/files/patch-strndup.c +++ b/shell-fm/files/patch-strndup.c @@ -1,6 +1,6 @@ --- src/strndup.c.orig Sat Dec 16 04:21:22 2006 +++ src/strndup.c Sat Dec 16 04:20:48 2006 -@@ -0,0 +1,14 @@ +@@ -0,0 +1,17 @@ +#include "strndup.h" +#include <string.h> +#include <stdlib.h> @@ -9,7 +9,10 @@ + +char* strndup(const char* src, size_t len) { + char* _tmpStr = (char*)malloc(len + 1); -+ strncpy(_tmpStr, src, len); ++ if (_tmpStr) { ++ strncpy(_tmpStr, src, len); ++ _tmpStr[len] = 0; ++ } + return _tmpStr; +} + --- shell-fm-v0.4.1.diff ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711271110.lARBA2ZX002722>