summaryrefslogtreecommitdiffstats
path: root/lib/libc-headless/stdio/sprintf.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-19 15:04:04 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-19 15:04:04 -0400
commit858a52c06a4615bd58a6a906333f2ad707d41c0a (patch)
tree16870cd4d67da283567a72a74d28c04464da292a /lib/libc-headless/stdio/sprintf.c
parent65ba015d6c1f248d36ad01a653bc49637804b15b (diff)
downloadjove-os-858a52c06a4615bd58a6a906333f2ad707d41c0a.tar.gz
jove-os-858a52c06a4615bd58a6a906333f2ad707d41c0a.tar.bz2
jove-os-858a52c06a4615bd58a6a906333f2ad707d41c0a.zip
usermode pager
Diffstat (limited to 'lib/libc-headless/stdio/sprintf.c')
-rw-r--r--lib/libc-headless/stdio/sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc-headless/stdio/sprintf.c b/lib/libc-headless/stdio/sprintf.c
index 2881bd5..dd78572 100644
--- a/lib/libc-headless/stdio/sprintf.c
+++ b/lib/libc-headless/stdio/sprintf.c
@@ -108,7 +108,7 @@ conversion_int:
for(uintmax_t v = value, i = numc - 1; v != 0; v /= radix, i--) {
if(written + i >= size) continue;
int digit = v % radix;
- char c = digit > 10 ? (digit + 'a' - 10) : (digit + '0');
+ char c = digit >= 10 ? (digit + 'a' - 10) : (digit + '0');
if(is_caps) c = toupper(c);
str[written + i] = c;
}