Skip to content

Commit 9784623

Browse files
authored
Update snipMemory6.cpp
1 parent e21e043 commit 9784623

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codereview101/snipMemory6.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
int len = 0, total = 0;
33
while(1){
44
fgets(buff1, MAX_SIZE, stdin);
5-
int len = strnlen(buff1, MAX_SIZE);
5+
len = strnlen(buff1, MAX_SIZE);
66
total += len;
77
if(total < MAX_SIZE) strncat(buff2, buff1, len);
88
else break;

0 commit comments

Comments
 (0)