We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9784623 commit bf75e40Copy full SHA for bf75e40
1 file changed
codereview101/snipMemory5.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