diff --git a/include/ss/common.hpp b/include/ss/common.hpp index 7ecdb33..9338128 100644 --- a/include/ss/common.hpp +++ b/include/ss/common.hpp @@ -68,7 +68,6 @@ ssize_t get_line_file(char** lineptr, size_t* n, FILE* fp) { if (*n <= buff_used + line_used) { size_t new_n = *n * 2; - *lineptr = static_cast(strict_realloc(*lineptr, new_n)); *n = new_n; } diff --git a/ssp.hpp b/ssp.hpp index e6578b5..4cc906e 100644 --- a/ssp.hpp +++ b/ssp.hpp @@ -680,7 +680,6 @@ ssize_t get_line_file(char** lineptr, size_t* n, FILE* fp) { if (*n <= buff_used + line_used) { size_t new_n = *n * 2; - *lineptr = static_cast(strict_realloc(*lineptr, new_n)); *n = new_n; }