char c = 0;
struct history *hp = his_end;
- memset(command, 0, sizeof(command));
if (!reset_term) {
getTermSettings(inputFd, (void*) &initial_settings);
xwrite(outputFd, prompt, strlen(prompt));
/* Reset the command string */
- memset(command, 0, sizeof(command));
+ memset(command, 0, BUFSIZ);
len = cursor = 0;
break;
char c = 0;
struct history *hp = his_end;
- memset(command, 0, sizeof(command));
if (!reset_term) {
getTermSettings(inputFd, (void*) &initial_settings);
xwrite(outputFd, prompt, strlen(prompt));
/* Reset the command string */
- memset(command, 0, sizeof(command));
+ memset(command, 0, BUFSIZ);
len = cursor = 0;
break;