From: mar Date: Wed, 12 Apr 1989 18:59:05 +0000 (+0000) Subject: do quote stripping correctly X-Git-Tag: KPATCH4~2 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/7fb8be7feda357ea6cc7ed7b83db131f56a7007b do quote stripping correctly --- diff --git a/lib/fixhost.c b/lib/fixhost.c index 73639625..5ab6dd0a 100644 --- a/lib/fixhost.c +++ b/lib/fixhost.c @@ -49,7 +49,7 @@ canonicalize_hostname(host) register char *cp; if (strlen(host) > 2 && host[0] == '"' && host[strlen(host)-1] == '"') { - strcpy(host+1, tbuf); + strcpy(tbuf, host+1); free(host); tbuf[strlen(tbuf)-1] = 0; return(strsave(tbuf));