made the buffer smaller
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 10 Oct 2014 12:44:36 +0100
changeset 235 75e32cd57ef0
parent 234 17e0efbec5d0
child 236 40efc28963af
made the buffer smaller
progs/C5.c
--- a/progs/C5.c	Fri Oct 10 12:39:11 2014 +0100
+++ b/progs/C5.c	Fri Oct 10 12:44:36 2014 +0100
@@ -2,7 +2,7 @@
 #include<string.h>
 
 int main(int argc, char **argv)
-{  char buf [100];
+{  char buf [10];
    snprintf(buf, sizeof buf, argv [1]);
    printf ("Input: %s \n", buf);
 }