summaryrefslogtreecommitdiffstats
path: root/5/5.c
diff options
context:
space:
mode:
Diffstat (limited to '5/5.c')
-rw-r--r--5/5.c3
1 files changed, 2 insertions, 1 deletions
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);