Index: ngrep-code-16ba99a863a89dab25cbf8e9ca410b19a7494c42/ngrep.c
===================================================================
--- ngrep-code-16ba99a863a89dab25cbf8e9ca410b19a7494c42/ngrep.c
+++ ngrep-code-16ba99a863a89dab25cbf8e9ca410b19a7494c42/ngrep.c
@@ -1005,13 +1005,13 @@ void dump_byline(unsigned char *data, ui
while (s < data + len) {
if (should_hilite && s == hilite_start)
- printf(ANSI_hilite);
+ printf("%s", ANSI_hilite);
printf("%c", (*s == '\n' || isprint(*s)) ? *s : nonprint_char);
s++;
if (should_hilite && s == hilite_end)
- printf(ANSI_off);
+ printf("%s", ANSI_off);
}
printf("\n");
@@ -1027,13 +1027,13 @@ void dump_unwrapped(unsigned char *data,
while (s < data + len) {
if (should_hilite && s == hilite_start)
- printf(ANSI_hilite);
+ printf("%s", ANSI_hilite);
printf("%c", isprint(*s) ? *s : nonprint_char);
s++;
if (should_hilite && s == hilite_end)
- printf(ANSI_off);
+ printf("%s", ANSI_off);
}
printf("\n");
@@ -1056,7 +1056,7 @@ void dump_formatted(unsigned char *data,
for (j = 0; j < width; j++) {
if (should_hilite && (mindex <= (i+j) && (i+j) < mindex + msize)) {
hiliting = 1;
- printf(ANSI_hilite);
+ printf("%s", ANSI_hilite);
}
if (i + j < len)
@@ -1068,7 +1068,7 @@ void dump_formatted(unsigned char *data,
if (hiliting) {
hiliting = 0;
- printf(ANSI_off);
+ printf("%s", ANSI_off);
}
}
}
@@ -1076,7 +1076,7 @@ void dump_formatted(unsigned char *data,
for (j = 0; j < width; j++) {
if (should_hilite && mindex <= (i+j) && (i+j) < mindex + msize) {
hiliting = 1;
- printf(ANSI_hilite);
+ printf("%s", ANSI_hilite);
}
if (i + j < len)
@@ -1085,7 +1085,7 @@ void dump_formatted(unsigned char *data,
if (hiliting) {
hiliting = 0;
- printf(ANSI_off);
+ printf("%s", ANSI_off);
}
}