]> andersk Git - moira.git/blobdiff - clients/moira/attach.c
use library version of canonicalize hostname
[moira.git] / clients / moira / attach.c
index a3b850a448e6621fd6ee0fd9e40f8c8488296b4f..4a7076ff0009a64bee7f28f694b1ce1d37fb5e9e 100644 (file)
@@ -262,9 +262,7 @@ Bool name;
        info[FS_MACHINE] = Strsave(NO_MACHINE);
     } else {
        GetValueFromUser("Filesystem's Machine", &info[FS_MACHINE]);
-       strcpy(temp_buf, CanonicalizeHostname(info[FS_MACHINE]));
-       free(info[FS_MACHINE]);
-       info[FS_MACHINE] = Strsave(temp_buf);
+       info[FS_MACHINE] = canonicalize_hostname(info[FS_MACHINE]);
     }
     if (!fsgroup) {
        GetValueFromUser("Filesystem's Pack Name", &info[FS_PACK]);
This page took 0.074068 seconds and 4 git commands to generate.