diff --git a/include/ucore/string.h b/include/ucore/string.h index 3fb3b1c..eb5e3ee 100644 --- a/include/ucore/string.h +++ b/include/ucore/string.h @@ -29,7 +29,7 @@ char* uc_hex_encode(const uint8_t *in, size_t len, char *out); * @param maxlen max length of @in to convert, * conversion stops when either maxlen is reached, * nul terminator of in is found or a non hex digit is found. - * @param out where to store result. Must hold at least maxlen/2 + * @param out where to store result. Must hold at least maxlen/2 + 1 * @return returns one past the end of the converted data */ uint8_t* uc_hex_decode(const char *in, size_t maxlen,uint8_t *out);