aboutsummaryrefslogtreecommitdiff
path: root/biology
diff options
context:
space:
mode:
Diffstat (limited to 'biology')
-rw-r--r--biology/babel/files/patch-strngutl.c13
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 );