1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

AK: Allow printing a literal '%' character with the printf family.

This commit is contained in:
Andreas Kling 2019-03-22 01:50:32 +01:00
parent 7c0a185970
commit 23fe630057

View file

@ -267,6 +267,11 @@ one_more:
++ret; ++ret;
break; break;
case '%':
putch(bufptr, '%');
++ret;
break;
case 'p': case 'p':
putch(bufptr, '0'); putch(bufptr, '0');
putch(bufptr, 'x'); putch(bufptr, 'x');