PRINTF wasn't handling escaped octal characters greater than 077.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@442 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
4
tools/external/w32/printf/printf.cpp
vendored
4
tools/external/w32/printf/printf.cpp
vendored
@@ -356,9 +356,9 @@ int print_esc(
|
||||
putchar (esc_value);
|
||||
}
|
||||
}
|
||||
else if( *p == '0')
|
||||
else if( isdigit( *p))
|
||||
{
|
||||
for( esc_length = 0, ++p;
|
||||
for( esc_length = 0;
|
||||
esc_length < 3 && isodigit (*p);
|
||||
++esc_length, ++p)
|
||||
{
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user