forked from ports/contrib
dev86: added missing patch
This commit is contained in:
parent
78311401f9
commit
a6639e5cd0
11
dev86/dev86-copt.patch
Normal file
11
dev86/dev86-copt.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- copt/copt.c.orig 2003-10-08 04:46:35.000000000 +0900
|
||||
+++ 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user