X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Futf8.c;h=09f924ae355b5a343adea18a56bd6702c8aea64a;hb=9f87c6fe6552ce8b2236a07307d2f825b0e4c439;hp=5d9b3adda759a34197bf181d44a9842e92917263;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/charset/utf8.c b/charset/utf8.c index 5d9b3add..09f924ae 100644 --- a/charset/utf8.c +++ b/charset/utf8.c @@ -1,7 +1,10 @@ /* * The UniCode Library -- UTF-8 Functions * - * (c) 1997 Martin Mares + * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -38,5 +41,5 @@ utf8_to_ucs2(word *d, byte *s) else *d++ = *s++; *d = 0; - return d0 - d; + return d - d0; }