]> andersk Git - moira.git/commitdiff
do quote stripping correctly
authormar <mar>
Wed, 12 Apr 1989 18:59:05 +0000 (18:59 +0000)
committermar <mar>
Wed, 12 Apr 1989 18:59:05 +0000 (18:59 +0000)
lib/fixhost.c

index 73639625b6fd9c08ccaec086669656964115e797..5ab6dd0a67c2a39b0405c3b92a858422edadba48 100644 (file)
@@ -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));
This page took 0.180756 seconds and 5 git commands to generate.