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:
ahodgkinson
2006-05-22 23:27:29 +00:00
parent 595f772a2f
commit b85af87a36
2 changed files with 2 additions and 2 deletions

View File

@@ -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.