diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-08-24 10:18:51 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-08-24 10:18:51 +0000 |
commit | 0ff48b2c81726cce4c10997bb87d35884cc05058 (patch) | |
tree | c2edde5835b4b92850af6cf96880cf4233a14d1f /biology | |
parent | 5e69107fb607080a3d830f15a432de298a2ed131 (diff) | |
download | ports-0ff48b2c81726cce4c10997bb87d35884cc05058.tar.gz ports-0ff48b2c81726cce4c10997bb87d35884cc05058.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/babel/files/patch-strngutl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/biology/babel/files/patch-strngutl.c b/biology/babel/files/patch-strngutl.c new file mode 100644 index 000000000000..12ddd18e920f --- /dev/null +++ b/biology/babel/files/patch-strngutl.c @@ -0,0 +1,13 @@ +--- ./strngutl.c.orig 1997-01-21 16:52:52.000000000 +0100 ++++ ./strngutl.c 2012-08-24 12:16:14.765914164 +0200 +@@ -182,8 +182,8 @@ + int ilen; + char *ptr; + +- if (!str) return; +- if ((ilen = strlen(str)) == 0) return; ++ if (!str) return(NULL); ++ if ((ilen = strlen(str)) == 0) return(NULL); + + ptr = (char *) malloc ( (ilen+1) * sizeof(char) ); + strcpy ( ptr, str ); |