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)
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.


No differences found