Convert chars to len with unsigned buffer
authorAlexandre Oliva <lxoliva@fsfla.org>
Thu, 6 Mar 2014 13:07:22 +0000 (10:07 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.info>
Fri, 7 Mar 2014 22:54:25 +0000 (19:54 -0300)
commitc76fb86a7dbccebeecde90597082941221c1a098
tree945c6cfd58fead8553dba8332dca7b346c267db4
parent0af3c53a56348b45c2f14d1dad42e86ec2d32e95
Convert chars to len with unsigned buffer

Introduce chars2len to compute a len out of an unsigned char buf[2].
This avoids problems when any of the chars is negative, if char is
signed.
rnetclient.c