diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-02-07 10:34:07 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-02-07 10:34:07 +0000 |
| commit | 5637d515fbda62e7c8ec39d0c993d11e02130cb6 (patch) | |
| tree | 6ab63b492fa1f37b46ab297b544accab9efb5290 | |
| parent | be6fcf20994cfcf72649f84b42b980544c904a8a (diff) | |
small bug in kprint.c
| -rw-r--r-- | kc/core/kprint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kc/core/kprint.c b/kc/core/kprint.c index ee2c39b..bc8db69 100644 --- a/kc/core/kprint.c +++ b/kc/core/kprint.c @@ -30,6 +30,12 @@ static char *convert_scalar( { static const char *stringdigits = "0123456789abcdef"; + // we cannot use a base > 16 currently + if (base > 16) + { + return NULL; + } + // the string will be built from the lower-to-higher value, and the // result pointer will point to the first character of the string in // the supplied buffer |
