From d26854a632af82c7853cd1157052da8c87d86ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Fri, 6 Dec 2013 23:16:54 +0100 Subject: [PATCH] Fix docs for uc_hex_decode --- include/ucore/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);