From 4d705c190b3ae9f1bc9dc0f2892cdfdba72719a2 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:56:36 +0000 Subject: Tue, Feb 27, 2024, 12:56 PM -08:00 --- wk4/lect/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wk4/lect/copy.c') diff --git a/wk4/lect/copy.c b/wk4/lect/copy.c index 7601d04..fe53251 100644 --- a/wk4/lect/copy.c +++ b/wk4/lect/copy.c @@ -12,7 +12,7 @@ int main(void) return 1; } - char *t = malloc(strlen(s) + 1); + char *t = malloc(strlen(s) + 1); // allocates a piece of memory for the new string with the same length as s if (t == NULL) { return 1; -- cgit v1.2.3