aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/stlfile.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-05-20 18:54:00 +0200
committerLouis Burda <quent.burda@gmail.com>2021-05-20 18:54:00 +0200
commit52fa3462e73b1a187b0df1413746bf500bf28ba8 (patch)
treeee10fd689789ef8f2031f2115b62317380cc5278 /service/src/stlfile.c
parent1109a88447e1c5cefe6ed93eccc8dcf8cd595d0e (diff)
downloadenowars5-service-stldoctor-52fa3462e73b1a187b0df1413746bf500bf28ba8.tar.gz
enowars5-service-stldoctor-52fa3462e73b1a187b0df1413746bf500bf28ba8.zip
fixed checker havocid to be compatible with where they were used without triggering exploits
Diffstat (limited to 'service/src/stlfile.c')
-rw-r--r--service/src/stlfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/src/stlfile.c b/service/src/stlfile.c
index 7b691d0..1f4dc66 100644
--- a/service/src/stlfile.c
+++ b/service/src/stlfile.c
@@ -361,8 +361,9 @@ print_info(struct parseinfo *info)
printf(" File Size: %u\n", info->filesize);
if (info->type == TYPE_BIN) {
- printf(" Header:\n ");
+ printf(" Header:\n");
for (i = 0; i < 80; i += k) {
+ printf(" ");
for (k = 0; k < MIN(80 - i, 20); k++)
printf(" %02x", (uint8_t) info->header[i+k]);
printf(" | ");