]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - dev86/patches/copt.patch
726196f3ef227323fc677ec91bc52ad6e1e77040
[people/amarx/ipfire-3.x.git] / dev86 / patches / copt.patch
1 --- linux86-0.16.17/copt/copt.c.orig 2003-10-08 04:46:35.000000000 +0900
2 +++ linux86-0.16.17/copt/copt.c 2010-10-12 12:30:25.000000000 +0900
3 @@ -174,7 +174,7 @@ static char *readline(FILE *fp)
4 /* Delete leading white spaces */
5 for (cp = buf; *cp && isspace(*cp); cp++) ;
6 if (cp != buf && *cp)
7 - strcpy(buf, cp);
8 + memmove(buf, cp, strlen(cp) + 1);
9
10 return(buf);
11 }