From 7fb8be7feda357ea6cc7ed7b83db131f56a7007b Mon Sep 17 00:00:00 2001 From: mar Date: Wed, 12 Apr 1989 18:59:05 +0000 Subject: [PATCH 1/1] do quote stripping correctly --- lib/fixhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.45.2