blob: d239b999a8e5d5152d1ed2abcd2868cdbe4589de (
plain)
1 --- copt/copt.c.orig 2003-10-08 04:46:35.000000000 +0900
2 +++ 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 }
|