In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the

buffer, that also avoids warnings.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 21:37:21 +00:00
parent 740885817c
commit 7ae1a27825
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228663

View File

@ -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) {