summaryrefslogtreecommitdiff
path: root/package/tslib
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-12 19:03:20 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-12 19:03:20 +0000
commitfb66bb3f58e23110debea0c920a8181e49885bb8 (patch)
treee3a752a4cea3fca2c05a60cfca02ce2647bc6934 /package/tslib
parentcd1d1fa6de53951d3d5543c6049eb00ff2ee2577 (diff)
patch to replace legacy bzero with memset in tslib
Diffstat (limited to 'package/tslib')
-rw-r--r--package/tslib/tslib-1.0-remove-bzero.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/tslib/tslib-1.0-remove-bzero.patch b/package/tslib/tslib-1.0-remove-bzero.patch
new file mode 100644
index 000000000..3e3ef3e1d
--- /dev/null
+++ b/package/tslib/tslib-1.0-remove-bzero.patch
@@ -0,0 +1,11 @@
+--- a/src/ts_parse_vars.c 2006-08-24 17:02:55.000000000 -0400
++++ b/src/ts_parse_vars.c 2008-03-12 13:57:01.000000000 -0400
+@@ -33,7 +33,7 @@ int tslib_parse_vars(struct tslib_module
+ return 0;
+
+ //s = alloca(strlen(str));
+- bzero(s_holder,1024);
++ memset(s_holder, 0, 1024);
+ strncpy(s_holder,str,strlen(str));
+ s = s_holder;
+ while ((p = strsep(&s, " \t")) != NULL && ret == 0) {