Source

srw / srw.c

Diff from to
 						len -= cur - i;
 						cur = i;
 						break;
+					case CTRL('v') : read(STDIN, &c, 1); // fall through
 					default :
+						if (len == sizeof(usrbuf)) {
+							fputc('\n', stderr);
+							warnx("full input buffer");
+							break;
+						}
 						if (cur != len)
 							memmove(usrbuf + cur + 1, usrbuf + cur, len - cur);
 						usrbuf[cur++] = c;