Skip to content

Commit

Permalink
[cleanup] replace function call to bzero with memset.
Browse files Browse the repository at this point in the history
  • Loading branch information
pstef committed Jul 31, 2016
1 parent a2befd7 commit 7422f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ parsefont(struct fstate *f, const char *s0)
const char *s = s0;
int sizedelta = 0;

bzero(f, sizeof *f);
memset(f, 0, sizeof(struct fstate));
while (*s) {
if (isdigit(*s))
f->size = f->size * 10 + *s - '0';
Expand Down

0 comments on commit 7422f42

Please sign in to comment.