summaryrefslogtreecommitdiffstats
path: root/mbbsd/name.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/name.c')
-rw-r--r--mbbsd/name.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c
index 2ca86494..67381b00 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -284,8 +284,7 @@ generalnamecomplete(const char *prompt, char *data, int len, size_t nmemb,
strcpy(data, (*getname)(start));
ret = start;
} else {
- // XXX why newline here?
- data[0] = '\n';
+ data[0] = '\0';
ret = -1;
}
} else