I attach the real patch.

"The strings may not overlap", as strcpy man says.

Also fixed the "spaces counter", this is the safe way AFAIK.

Regards

--- syslog.c.orig       2013-02-12 00:24:36.000000000 +0100
+++ syslog.c    2013-02-12 00:25:38.000000000 +0100
@@ -210,14 +210,15 @@
 {
            char    *p;
   unsigned int     i = 0;
+  unsigned int     n = 0;
 
   if (strlen (str) == 0)
     return (str);
 
   for (i = 0; isspace (str[i]); i++)
-    ;
+    n++;
 
-  strcpy (str, str + i);
+  str=+n;
 
   p = str + strlen (str);
     while ((p--) != str && isspace (*p))


-- 
Antoni Villalonga
http://friki.cat/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to