]> andersk Git - moira.git/blobdiff - lib/fixhost.c
don't clobber error code before loggin it.
[moira.git] / 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.028926 seconds and 4 git commands to generate.