summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-08-23 15:49:31 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-08-23 15:49:31 +0000
commitbf140447ba22be336a56544c86dcde828ad3a88a (patch)
tree5ddfac77a0d57f2e19804d67b612a102cda79843 /usr.bin
parentdd9faf6dc4d15b54063480f6f03d7063be82097b (diff)
downloadsrc-test2-bf140447ba22be336a56544c86dcde828ad3a88a.tar.gz
src-test2-bf140447ba22be336a56544c86dcde828ad3a88a.zip
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c
index 1f662a7d6c82..e1a30e504d69 100644
--- a/usr.bin/indent/io.c
+++ b/usr.bin/indent/io.c
@@ -630,7 +630,7 @@ parsefont(struct fstate *f, const char *s0)
const char *s = s0;
int sizedelta = 0;
- memset(f, 0, sizeof(struct fstate));
+ memset(f, '\0', sizeof(*f));
while (*s) {
if (isdigit(*s))
f->size = f->size * 10 + *s - '0';