diff options
Diffstat (limited to 'kc/core')
| -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 |
