mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-25 17:19:46 +05:30
str_replace.c: fix the typo in perror
call
This commit is contained in:
parent
f2746abffb
commit
e0d686f033
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user