aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2008-07-24 20:01:33 +0800
committerpav <pav@FreeBSD.org>2008-07-24 20:01:33 +0800
commit2a6714455115aa3955a446df79f881deed7a5115 (patch)
tree61ee4a2394b0dad9cef95d745a94295385769b4d
parent77b81cc376b2d333f6c26d20bb0812cffc52d84f (diff)
downloadfreebsd-ports-gnome-2a6714455115aa3955a446df79f881deed7a5115.tar.gz
freebsd-ports-gnome-2a6714455115aa3955a446df79f881deed7a5115.tar.zst
freebsd-ports-gnome-2a6714455115aa3955a446df79f881deed7a5115.zip
- Included by vendor in 0.9
PR: ports/125927 Submitted by: Romain Tartiere <romain@blogreen.org>
-rw-r--r--sysutils/policykit/files/patch-src_kit_kit-string.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sysutils/policykit/files/patch-src_kit_kit-string.c b/sysutils/policykit/files/patch-src_kit_kit-string.c
deleted file mode 100644
index 5a89ed70954f..000000000000
--- a/sysutils/policykit/files/patch-src_kit_kit-string.c
+++ /dev/null
@@ -1,36 +0,0 @@
---- src/kit/kit-string.c.orig 2008-04-08 15:44:50.000000000 -0400
-+++ src/kit/kit-string.c 2008-07-03 18:17:57.000000000 -0400
-@@ -113,6 +113,33 @@ out:
-
- #else
-
-+#ifndef HAVE_STRNDUP
-+static char
-+*strndup ( const char *s, size_t n)
-+{
-+ size_t nAvail;
-+ char *p;
-+
-+ if ( !s )
-+ return NULL;
-+
-+ if (memchr(s, '\0', n) != NULL) {
-+ nAvail = strlen(s);
-+ if ( nAvail > n )
-+ nAvail = n;
-+ } else {
-+ nAvail = n;
-+ }
-+ p = malloc ( nAvail + 1 );
-+ if ( p == NULL)
-+ return NULL;
-+ memcpy ( p, s, nAvail );
-+ p[nAvail] = '\0';
-+
-+ return p;
-+}
-+#endif
-+
- char *
- kit_strdup (const char *s)
- {