--- copt/copt.c.orig 2011-02-10 12:24:14.112000014 +0100 +++ copt/copt.c 2011-02-10 12:24:40.788000014 +0100 @@ -174,7 +174,7 @@ /* 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); }