From e0d686f0330b468bc4112749391818445b729ad2 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 16 Mar 2024 14:07:33 +0300 Subject: [PATCH] str_replace.c: fix the typo in `perror` call --- c-programming/strings/str_replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }