This patch replaces a call to fprintf() with a non-format prompt argument with corresponding fputs. This resolves a compilation error with the latest GCC version. Also see this FAQ.
./../../../cxmon/src/mon.cpp: In function 'void read_line(char*)':
./../../../cxmon/src/mon.cpp:285:24: error: format not a string literal and no format arguments [https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-security>
285 | fprintf(monout, prompt);
| ^
Let me know if you prefer this patch or fprintf(monout, "%s", prompt);.
This patch replaces a call to
fprintf()
with a non-formatprompt
argument with correspondingfputs
. This resolves a compilation error with the latest GCC version. Also see this FAQ.Let me know if you prefer this patch or
fprintf(monout, "%s", prompt);
.