fix counting of UTF8-charwidth
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 19 Aug 2011 16:43:30 +0000 (16:43 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 19 Aug 2011 17:15:22 +0000 (17:15 +0000)
commitf1e86bdcc55adbd5bc7af04ccf64af01674ea64c
treeeeb7fb84ff0b1350c663be2ac8dca7d41e4ea1ac
parent2d65a22caf6157e3a4759e5e17cb2bbd1d5934a9
fix counting of UTF8-charwidth

  - Ctdl_GetUtf8SequenceLength(): testbyte needs to be unsigned char, else >> will shift us new bits in from the left
  - we need to shift 'test' to the right
  - start counting at 0
libcitadel/lib/stringbuf.c