From 94f1363c5988cca81a426a96e595e9ff3271e46b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 2 Nov 2002 15:04:53 +0000 Subject: [PATCH] Fixed a small bug when editing filename --- mbsetup/m_ol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbsetup/m_ol.c b/mbsetup/m_ol.c index e4f5b9e0..2e1bf362 100644 --- a/mbsetup/m_ol.c +++ b/mbsetup/m_ol.c @@ -479,7 +479,7 @@ void ImportOneline(void) mvprintw(5, 6, "8.7.3 IMPORT ONELINERS"); set_color(CYAN, BLACK); temp = calloc(PATH_MAX, sizeof(char)); - memset(&temp, 0, sizeof(temp)); + memset(temp, 0, sizeof(temp)); strcpy(temp, edit_str(21, 6,64, temp, (char *)"The ^full path and filename^ of the file to import")); if (strlen(temp) == 0) { free(temp); @@ -555,7 +555,7 @@ void ImportOneline(void) sprintf(temp, "Imported %d records, skipped %d long/empty lines", recno, skipped); mvprintw(21, 6, temp); - readkey(21, 27, LIGHTGRAY, BLACK); + readkey(21, 7 + strlen(temp), LIGHTGRAY, BLACK); free(temp); }