We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21e043 commit 9784623Copy full SHA for 9784623
1 file changed
codereview101/snipMemory6.cpp
@@ -2,7 +2,7 @@
2
int len = 0, total = 0;
3
while(1){
4
fgets(buff1, MAX_SIZE, stdin);
5
- int len = strnlen(buff1, MAX_SIZE);
+ len = strnlen(buff1, MAX_SIZE);
6
total += len;
7
if(total < MAX_SIZE) strncat(buff2, buff1, len);
8
else break;
0 commit comments