Mercurial > dovecot > original-hg > dovecot-1.2
changeset 19:a766fb2132de HEAD
comment update
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 23 Aug 2002 17:52:26 +0300 |
parents | 6491ac40cdf5 |
children | df8438cd8a43 |
files | src/lib/hex-binary.h |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/hex-binary.h Fri Aug 23 01:20:20 2002 +0300 +++ b/src/lib/hex-binary.h Fri Aug 23 17:52:26 2002 +0300 @@ -6,8 +6,9 @@ const char *binary_to_hex(const unsigned char *data, unsigned int size); /* Convert hex to binary. data and dest may point to same value. - Returns TRUE if successful. Returns number of bytes writte to dest, - or -1 if error occured. */ + Returns TRUE if successful. Returns number of bytes written to dest, + or -1 if error occured. Make sure dest is at least half the size of + strlen(data). */ int hex_to_binary(const char *data, unsigned char *dest); #endif