Explorar o código

patch to replace legacy bzero with memset in tslib

John Voltz %!s(int64=17) %!d(string=hai) anos
pai
achega
fb66bb3f58
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      package/tslib/tslib-1.0-remove-bzero.patch

+ 11 - 0
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) {