diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-27 20:56:36 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-27 20:56:36 +0000 |
commit | 4d705c190b3ae9f1bc9dc0f2892cdfdba72719a2 (patch) | |
tree | f6fcc7bae9158f5bbbe6b38bb19d13a3d33b40ba /wk4/lect/copy.c | |
parent | 3180c67e696094fb12661048bd27259147fc7323 (diff) |
Tue, Feb 27, 2024, 12:56 PM -08:00
Diffstat (limited to 'wk4/lect/copy.c')
-rw-r--r-- | wk4/lect/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |