diff --git a/indent.c b/indent.c index e685d68..2ec600a 100644 --- a/indent.c +++ b/indent.c @@ -1202,7 +1202,7 @@ bakcopy(void) bakchn = creat(bakfile, 0600); if (bakchn < 0) err(1, "%s", bakfile); - while ((n = read(fileno(input), buff, sizeof buff)) != 0) + while ((n = read(fileno(input), buff, sizeof(buff))) != 0) if (write(bakchn, buff, n) != n) err(1, "%s", bakfile); if (n < 0) diff --git a/lexi.c b/lexi.c index b8ec09f..e98461f 100644 --- a/lexi.c +++ b/lexi.c @@ -322,7 +322,7 @@ lexi(void) while (tp < buf_end) if (*tp++ == ')' && (*tp == ';' || *tp == ',')) goto not_proc; - strncpy(ps.procname, token, sizeof ps.procname - 1); + strncpy(ps.procname, token, sizeof(ps.procname) - 1); ps.in_parameter_declaration = 1; rparen_count = 1; not_proc:;