diff options
-rw-r--r-- | src/cmd/auth/factotum/secstore.c | 2 | ||||
-rw-r--r-- | src/cmd/yacc.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/auth/factotum/secstore.c b/src/cmd/auth/factotum/secstore.c index 2babf4d8..c17c3cf2 100644 --- a/src/cmd/auth/factotum/secstore.c +++ b/src/cmd/auth/factotum/secstore.c @@ -181,7 +181,7 @@ SC_read(SConn *conn, uchar *buf, int n) uchar count[2], digest[SHA1dlen]; int len, nr; - if(read(ss->fd, count, 2) != 2 || count[0]&0x80 == 0){ + if(read(ss->fd, count, 2) != 2 || (count[0]&0x80) == 0){ werrstr("!SC_read invalid count"); return -1; } diff --git a/src/cmd/yacc.c b/src/cmd/yacc.c index c080e012..32990f62 100644 --- a/src/cmd/yacc.c +++ b/src/cmd/yacc.c @@ -2130,11 +2130,12 @@ swt: c = Bgetrune(finput); if(c == '\n') lineno++; - } else + } else { if(c == match) goto lcopy; if(c == '\n') error("newline in string or char. const."); + } Bputrune(faction, c); } error("EOF in string or character constant"); |