Fix bounds check in sceKernelPrintf().

Wasn't allowing a string ending in %08x.
This commit is contained in:
Unknown W. Brackets committed 2013-08-06 23:52:38 -07:00
1 parent 04e2a78f82
commit fff0af844b
1 file changed
+1 -1
+1 -1
View File
@@ -617,7 +617,7 @@ int sceKernelPrintf(const char *formatString)
break;
case '0':
if (i + 3 >= n || format[i + 1] != '8' || format[i + 2] != 'x')
if (i + 3 > n || format[i + 1] != '8' || format[i + 2] != 'x')
supported = false;
else
{