*/
-#include "silcincludes.h"
+#include "silc.h"
#include "silcutf8.h"
/* Encodes the string `bin' of which encoding is `bin_encoding' to the
if (enclen + 3 > bin_size)
return 0;
bin[enclen] = '\\';
- snprintf(bin + enclen + 1, 3, "%02X", cv);
+ silc_silc_snprintf(bin + enclen + 1, 3, "%02X", cv);
}
enclen += 3;
continue;
return TRUE;
/* Casefold and normalize */
- status = silc_stringprep(s1, strlen(s1), SILC_STRING_UTF8,
+ status = silc_stringprep(s1, n, SILC_STRING_UTF8,
SILC_IDENTIFIERC_PREP, 0, &s1u,
&s1u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)
return FALSE;
/* Casefold and normalize */
- status = silc_stringprep(s2, strlen(s2), SILC_STRING_UTF8,
+ status = silc_stringprep(s2, n, SILC_STRING_UTF8,
SILC_IDENTIFIERC_PREP, 0, &s2u,
&s2u_len, SILC_STRING_UTF8);
if (status != SILC_STRINGPREP_OK)