]> andersk Git - moira.git/commitdiff
off-by-one error in dequoting quoted hostnames
authordanw <danw>
Fri, 27 Feb 1998 20:53:42 +0000 (20:53 +0000)
committerdanw <danw>
Fri, 27 Feb 1998 20:53:42 +0000 (20:53 +0000)
lib/fixhost.c

index a7ec0402e8ab8f4c1bfe263d3d0a77e16b943af2..81c3bc2e66602fbdf769a7d1265981d98ecd5d63 100644 (file)
@@ -49,7 +49,7 @@ char *canonicalize_hostname(char *host)
       if (!tbuf)
        return NULL;
       strncpy(tbuf, host + 1, len - 2);
-      tbuf[len - 1] = '\0';
+      tbuf[len - 2] = '\0';
       free(host);
       return tbuf;
     }
This page took 0.220197 seconds and 5 git commands to generate.