From a15cec4b73450902c3c58479ba13bbebf5dadac3 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 3 Oct 2014 17:04:48 +0100 Subject: Clarify semantics --- ratox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ratox.c b/ratox.c index 8e59756..d7de35e 100644 --- a/ratox.c +++ b/ratox.c @@ -1109,6 +1109,7 @@ toxconnect(void) return 0; } +/* Caller has to ensure `idstr' is big enough */ static void id2str(uint8_t *id, char *idstr) { @@ -1122,6 +1123,7 @@ id2str(uint8_t *id, char *idstr) *idstr = '\0'; } +/* Caller has to ensure that `id' is big enough */ static void str2id(char *idstr, uint8_t *id) { -- cgit v1.2.3