diff --git a/c-programming/strings/str_replace.c b/c-programming/strings/str_replace.c index 6910daa..a663e6b 100644 --- a/c-programming/strings/str_replace.c +++ b/c-programming/strings/str_replace.c @@ -38,7 +38,7 @@ char* str_replace( char* result = malloc((new_len + 1) * sizeof(char)); if (result == NULL) { - perror("calloc"); + perror("malloc"); exit(EXIT_FAILURE); }