From: Russ Cox Date: Sun, 15 Nov 2009 08:00:05 +0000 (-0800) Subject: cc: drop redundant strcpy X-Git-Tag: weekly.2009-11-17~56 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b18bee948eea1ff2989e2cc28bd9abee821d2630;p=gostls13.git cc: drop redundant strcpy Fixes #192. R=ken2 https://golang.org/cl/155047 --- diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c index 1635e8b9de..428ba55ad9 100644 --- a/src/cmd/cc/lex.c +++ b/src/cmd/cc/lex.c @@ -419,8 +419,6 @@ lookup(void) s = alloc(sizeof(*s)); s->name = alloc(n); memmove(s->name, symb, n); - - strcpy(s->name, symb); s->link = hash[h]; hash[h] = s; syminit(s);