Merge pull request #16 from 1278132270/fix_symbol_error

修改1.2节示例代码的符号错误
This commit is contained in:
GuoSheng Du
2023-06-26 10:42:02 +08:00
committed by GitHub

View File

@@ -17,7 +17,7 @@ for (;;) {
n = read(0, buf, sizeof buf);
if (n == 0)
break;
if (n < 0) {
if (n < 0) {
fprintf(2, "read error\n");
exit(1);
}