summaryrefslogtreecommitdiff
path: root/package/haserl/patches/patch-src_haserl_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/haserl/patches/patch-src_haserl_c')
-rw-r--r--package/haserl/patches/patch-src_haserl_c12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/haserl/patches/patch-src_haserl_c b/package/haserl/patches/patch-src_haserl_c
new file mode 100644
index 000000000..208f9073b
--- /dev/null
+++ b/package/haserl/patches/patch-src_haserl_c
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- haserl-0.8.0.orig/src/haserl.c 2004-11-10 18:59:35.000000000 +0100
++++ haserl-0.8.0/src/haserl.c 2008-10-09 14:21:28.000000000 +0200
+@@ -131,7 +131,7 @@ int myputenv (char *newbuf, char *prefix
+ if (strlen(prefix)) { memcpy (entry, prefix, strlen(prefix)); }
+ memcpy ((char *) (entry + strlen(prefix)), newbuf, strlen(newbuf));
+
+- keylen = (size_t) (index (entry, '=') - entry);
++ keylen = (size_t) (strchr (entry, '=') - entry);
+
+ if ( keylen <= 0 ) {
+ free (entry);