Fixed a small bug when editing filename
This commit is contained in:
parent
5bdc0a6cf6
commit
94f1363c59
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user