Sanitising debug-printf formats, mostly.
This commit is contained in:
parent
be5cc4e528
commit
2c96e7c30d
9 changed files with 26 additions and 5 deletions
|
|
@ -166,6 +166,7 @@ wint_t url_fgetwc( URL_FILE * input ) {
|
|||
debug_print( L"url_fgetwc: back from url_fgets\n",
|
||||
DEBUG_IO );
|
||||
int c = ( int ) cbuff[0];
|
||||
// TODO: risk of reading off cbuff?
|
||||
debug_printf( DEBUG_IO,
|
||||
L"url_fgetwc: cbuff is '%s'; (first) character = %d (%c)\n",
|
||||
cbuff, c, c & 0xf7 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue