Fix up ARTV import so that imports actually work.
[citadel.git] / citadel / control.c
index 2522c7f3acd8a3a1d29c359da2efbdffa8431220..ea0865d49fd5db46243e0427d70ff76783a466b9 100644 (file)
@@ -342,7 +342,7 @@ void cmd_conf(char *argbuf)
                unbuffer_output();
                cprintf("%d Send configuration...\n", SEND_LISTING);
                a = 0;
-               while (client_getln(buf, sizeof buf), strcmp(buf, "000")) {
+               while (client_getln(buf, sizeof buf) >= 0 && strcmp(buf, "000")) {
                        switch (a) {
                        case 0:
                                safestrncpy(config.c_nodename, buf,