diff options
author | root <root@rshg054.dnsready.net> | 2012-10-25 01:42:20 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-25 01:42:20 -0700 |
commit | a3b55a0c47a00ac40bc00a4ce87d93f809273840 (patch) | |
tree | 6fcc1360f835115b132c35ca978b1f804540a372 /multilib/dev86/copt.patch | |
parent | 120df4e0db159525806a9b33364483e76f9d51d3 (diff) |
Thu Oct 25 01:42:05 PDT 2012
Diffstat (limited to 'multilib/dev86/copt.patch')
-rw-r--r-- | multilib/dev86/copt.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/multilib/dev86/copt.patch b/multilib/dev86/copt.patch new file mode 100644 index 000000000..f3dc1f310 --- /dev/null +++ b/multilib/dev86/copt.patch @@ -0,0 +1,16 @@ +diff -wbBur dev86-0.16.19.org/copt/copt.c dev86-0.16.19/copt/copt.c +--- dev86-0.16.19.org/copt/copt.c 2003-10-07 23:46:35.000000000 +0400 ++++ dev86-0.16.19/copt/copt.c 2012-10-24 15:23:48.604705265 +0400 +@@ -174,7 +174,11 @@ + /* Delete leading white spaces */ + for (cp = buf; *cp && isspace(*cp); cp++) ; + if (cp != buf && *cp) +- strcpy(buf, cp); ++ { ++ int len = strlen(cp); ++ memmove(buf, cp, len); ++ buf[len] = 0; ++ } + + return(buf); + } |