# HG changeset patch # User Timo Sirainen # Date 1030114346 -10800 # Node ID a766fb2132de21d84db141e0064a034b501b8195 # Parent 6491ac40cdf56edee47f8465f6a0b64925b716db comment update diff -r 6491ac40cdf5 -r a766fb2132de src/lib/hex-binary.h --- 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