From e1ed3268351e6b4bd2310b22e984eb6a852fa2d6 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 31 Dec 2021 16:55:36 +0800 Subject: 5.5 --- 5/5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/5/5.c b/5/5.c index f9156ef..eedab80 100644 --- a/5/5.c +++ b/5/5.c @@ -20,8 +20,9 @@ int main(int argc, char *argv[]) { mstrncpy(s, t, n); printf("mstrncpy: %s\n", s); + n = 7; t = "may the force be with you"; - mstrncat(s, t, 7); + mstrncat(s, t, n); printf("mstrncat: %s\n", s); free(s); -- cgit v1.2.3