Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-l committed Oct 27, 2024
1 parent 647a36c commit e23633d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/auditing-cybersecurity.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ int set_last_activity_error(int, char const *);
int open_file(char *, char *, FILE **);
int open_file_str(char *, char *, FILE **, char ***);
int show_message(char *, int , int , int , bool, bool, bool);
char * get_readline(char *, bool );
char * get_readline(char *, bool);
int format_strings_from_files(char *, char *);
void show_intro(char *, char *);
void show_intro_banner();
Expand Down
8 changes: 6 additions & 2 deletions src/others/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ char * get_readline(char *prompt, bool addHistory){
free(lineRead);
lineRead=(char *)NULL;
}
printf("%s",prompt);
lineRead=readline(" ");
if(addHistory){
lineRead=readline(prompt);
}else{
printf("%s",prompt);
lineRead=readline(" ");
}
if(lineRead && *lineRead && addHistory) add_history (lineRead);
return (lineRead);
}
Expand Down

0 comments on commit e23633d

Please sign in to comment.