Skip to content

Commit

Permalink
[style] sizeof(var).
Browse files Browse the repository at this point in the history
  • Loading branch information
pstef committed Jul 31, 2016
1 parent c9cbd3a commit a2befd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indent.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lexi.c
Expand Up @@ -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:;
Expand Down

0 comments on commit a2befd7

Please sign in to comment.