mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-29 04:21:26 +01:00
Fixed extra columns in output for input lines with leading spaces.
This commit is contained in:
parent
fc15f74a8b
commit
58fd4e52ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20402
@ -93,6 +93,8 @@ char *argv[];
|
||||
{
|
||||
if (linestart && c == ' ') /* Convert first spaces to tab */
|
||||
{
|
||||
if (count++ % LINE == 0)
|
||||
printf("\n\t");
|
||||
printf("0x%02x,", ('\t' ^ random()) & 0xFF);
|
||||
while ((c = getc(infile)) == ' ' && c != EOF);
|
||||
/* Drop the non-whitespace character through */
|
||||
@ -107,7 +109,7 @@ char *argv[];
|
||||
linestart = YES; /* Ready to convert spaces again */
|
||||
break;
|
||||
}
|
||||
if (count++ % LINE == 0) /* Finished a line? */
|
||||
if (count++ % LINE == 0)
|
||||
printf("\n\t");
|
||||
printf("0x%02x,", (c ^ random()) & 0xFF);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user