This commit is contained in:
Night Kaly 2024-02-01 19:14:32 +00:00
parent 4c47f02034
commit 94694ce2f7
No known key found for this signature in database
GPG key ID: 8E829D3381CFEBBE

View file

@ -112,7 +112,7 @@ char **get_all_history() {
fprintf(stderr, "rush: Error allocating memory\n");
exit(EXIT_FAILURE);
}
char buffer[RL_BUFSIZE]; // Adjust the buffer size as needed
char buffer[RL_BUFSIZE];
int line_count = 0;
while (fgets(buffer, sizeof(buffer), history_file) != NULL) {