1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

str_replace.c: fix the typo in perror call

This commit is contained in:
2024-03-16 14:07:33 +03:00
parent f2746abffb
commit e0d686f033

View File

@@ -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);
}