summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-02-04 07:56:26 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-02-04 07:56:26 +0000
commitd7a50524698e8de8d9b3e76d2edcaa3cd4863aa7 (patch)
tree8b83789dfd52bfa7b7ef6d5e6f43a6c5b4349a3a /comms
parent- Update to 5.00 (diff)
- A function in gnokii happens to use strndup() which is implemented
only in 8.0, so revert it to a simple strdup(). PR: ports/131350 Reported by: ledondo2000 at gmail.com Submitted by: Guido Falsi <mad@madpilot.net> (maintainer)
Notes
Notes: svn path=/head/; revision=227595
Diffstat (limited to 'comms')
-rw-r--r--comms/gnokii/Makefile1
-rw-r--r--comms/gnokii/files/patch-gnokii-gnokii.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/comms/gnokii/Makefile b/comms/gnokii/Makefile
index e9ca23002ad4..cde2a72811e3 100644
--- a/comms/gnokii/Makefile
+++ b/comms/gnokii/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnokii
PORTVERSION= 0.6.27
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= comms
MASTER_SITES= http://www.gnokii.org/download/gnokii/ \
diff --git a/comms/gnokii/files/patch-gnokii-gnokii.c b/comms/gnokii/files/patch-gnokii-gnokii.c
new file mode 100644
index 000000000000..dd16da5aed4b
--- /dev/null
+++ b/comms/gnokii/files/patch-gnokii-gnokii.c
@@ -0,0 +1,11 @@
+--- gnokii/gnokii.c.orig 2009-02-03 23:23:35.000000000 +0100
++++ gnokii/gnokii.c 2009-02-03 23:24:01.000000000 +0100
+@@ -1082,7 +1082,7 @@
+ else
+ len = strlen(input);
+ if (len > 0)
+- argv[argc++] = strndup(input, len);
++ argv[argc++] = strdup(input);
+ input = tmp;
+ } while (input);
+ argv[argc] = NULL;