diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2005-10-11 16:38:56 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2005-10-11 16:38:56 +0000 |
commit | 164770cbbb06c48cf0edd80162e69fa02efe2884 (patch) | |
tree | 28bf91e3dd8fa830aa4e3eafeda28685ca805292 /comms/scmxx/files/patch-src_pinfile.c | |
parent | Mark as BROKEN: unfetchable. (diff) |
- Update to 0.8.1
PR: ports/87256
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=144955
Diffstat (limited to 'comms/scmxx/files/patch-src_pinfile.c')
-rw-r--r-- | comms/scmxx/files/patch-src_pinfile.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/comms/scmxx/files/patch-src_pinfile.c b/comms/scmxx/files/patch-src_pinfile.c deleted file mode 100644 index 6a48a2dfbe97..000000000000 --- a/comms/scmxx/files/patch-src_pinfile.c +++ /dev/null @@ -1,23 +0,0 @@ - -$FreeBSD$ - ---- src/pinfile.c.orig -+++ src/pinfile.c -@@ -21,6 +21,17 @@ - #include <limits.h> - #include <ctype.h> - -+char* strndup(const char *str, size_t len) { -+ size_t copy_len=(strlen (str) > len) ? strlen(str): len; -+ char *new = (char *) malloc (copy_len + 1); -+ -+ if (new == NULL) -+ return NULL; -+ -+ new[copy_len] = '\0'; -+ return (char *) memcpy (new, str, copy_len); -+} -+ - char* pinfile_get_data (char* filename) { - int fd = open(filename,O_RDONLY); - struct stat fdstat; |