iptraf-ng-1.1.4-printf-format.patch 284 B

123456789101112
  1. --- a/src/ipfilter.c
  2. +++ b/src/ipfilter.c
  3. @@ -146,7 +146,7 @@
  4. snprintf(msgstr, 60,
  5. "Invalid protocol input at or near token \"%s\"",
  6. bptr);
  7. - tui_error(ANYKEY_MSG, msgstr);
  8. + tui_error(ANYKEY_MSG, "%s", msgstr);
  9. doagain = 1;
  10. } else
  11. doagain = 0;