Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 4a702e244399ae286b2d23975b5ab4f1 > files > 3

dev86-0.16.19-2.mga3.src.rpm

--- linux86-0.16.17/copt/copt.c.orig	2003-10-08 04:46:35.000000000 +0900
+++ linux86-0.16.17/copt/copt.c	2010-10-12 12:30:25.000000000 +0900
@@ -174,7 +174,7 @@ static char *readline(FILE *fp)
   /* Delete leading white spaces */
   for (cp = buf; *cp && isspace(*cp); cp++) ;
   if (cp != buf && *cp)
-	strcpy(buf, cp);
+	memmove(buf, cp, strlen(cp) + 1);
 
   return(buf);
 }