X-Git-Url: http://git.silcnet.org/gitweb/?p=runtime.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcutf8.c;h=617c3d475327d177abf2a16204915e2d7181926d;hp=8bbb5ece2a23d8242835b07032af9af47c4d649c;hb=a788ad407a51e84cfd41fedc6c053e62283ea2d7;hpb=72c2de619079457f7a68100eb13385275a424a23 diff --git a/lib/silcutil/silcutf8.c b/lib/silcutil/silcutf8.c index 8bbb5ece..617c3d47 100644 --- a/lib/silcutil/silcutf8.c +++ b/lib/silcutil/silcutf8.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2004 - 2007 Pekka Riikonen + Copyright (C) 2004 - 2008 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,8 +17,7 @@ */ -#include "silc.h" -#include "silcutf8.h" +#include "silcruntime.h" /* Encodes the string `bin' of which encoding is `bin_encoding' to the UTF-8 encoding into the buffer `utf8' which is of size of `utf8_size'. @@ -508,7 +507,7 @@ SilcUInt32 silc_utf8_decode(const unsigned char *utf8, SilcUInt32 utf8_len, if (enclen + 3 > bin_size) goto overflow; bin[enclen] = '\\'; - silc_snprintf(bin + enclen + 1, 3, "%02X", cv); + silc_snprintf((char *)bin + enclen + 1, 3, "%02X", cv); } enclen += 3; continue;