diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 10:31:10 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-01-15 10:31:10 +0100 |
| commit | 0ef3aa8f1e3698fb3572ad722cd66226ce14815c (patch) | |
| tree | 09ca32492ef93977d1a60bccfee17a20b8d661fb /lib/io | |
| parent | d4d61b2b4b501046216491e3632ba8e74deab858 (diff) | |
fix number index bug
Diffstat (limited to 'lib/io')
| -rw-r--r-- | lib/io/io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/io/io.c b/lib/io/io.c index 43e05b4..e8384f3 100644 --- a/lib/io/io.c +++ b/lib/io/io.c @@ -43,12 +43,14 @@ void wstdf__(const char *buf, const void **args) stoi_buf[i] = 0; i64_to_cstr(((u64 *)args)[0], stoi_buf, 32); __wstdn(stoi_buf, cstr_length(stoi_buf)); + ++args; break; case 'u': for (i = 0; i < 32; ++i) stoi_buf[i] = 0; u64_to_cstr(((u64 *)args)[0], stoi_buf, 32); __wstdn(stoi_buf, cstr_length(stoi_buf)); + ++args; break; case 'S': sgr(((const char **)args)[0]); |