summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lpr/filters/lpf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/lpr/filters/lpf.c b/usr.sbin/lpr/filters/lpf.c
index f88752a..b277d17 100644
--- a/usr.sbin/lpr/filters/lpf.c
+++ b/usr.sbin/lpr/filters/lpf.c
@@ -55,6 +55,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#define MAXWIDTH 132
#define MAXREP 10
@@ -115,7 +116,7 @@ main(int argc, char *argv[])
acctfile = cp;
}
- for (cp = buf[0], limit = buf[MAXREP]; cp < limit; *cp++ = ' ');
+ memset(buf, ' ', sizeof(buf));
done = 0;
while (!done) {
OpenPOWER on IntegriCloud