diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-24 12:01:33 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-07-24 12:01:33 +0000 |
commit | c62462b5e6944c6c41ef6c5fdc3a649e391da093 (patch) | |
tree | dd123fb876e995f981e242d9b58970acc16c9f8f /sysutils/policykit | |
parent | 8bfb541e583ddbead2841cbf8270707e214cf5c5 (diff) | |
download | ports-c62462b5e6944c6c41ef6c5fdc3a649e391da093.tar.gz ports-c62462b5e6944c6c41ef6c5fdc3a649e391da093.zip |
Notes
Diffstat (limited to 'sysutils/policykit')
-rw-r--r-- | sysutils/policykit/files/patch-src_kit_kit-string.c | 36 |
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) - { |