From a3b55a0c47a00ac40bc00a4ce87d93f809273840 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Oct 2012 01:42:20 -0700 Subject: Thu Oct 25 01:42:05 PDT 2012 --- multilib/dev86/copt.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 multilib/dev86/copt.patch (limited to 'multilib/dev86/copt.patch') 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); + } -- cgit v1.2.3-54-g00ecf