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); }