for (i = 0; i < textEntry->numIndexes; i++) {
RCOTextIndex *idx = &(textEntry->indexes[i]);
uint32_t len = strlen (get_label_from_offset (labels, idx->labelOffset));
- uint32_t dataLen = 0;
+ size_t dataLen = 0;
if (len > MAX_LABEL_LEN)
len = MAX_LABEL_LEN;
char buf[4096];
char *bufOut = buf;
- uint32_t outBufLen = 4096;
+ size_t outBufLen = 4096;
/* { // feed in the BOM (is it really necessary though?) uint32_t
* number; char* unicodePtr; if(textEntry->format ==
uint32_t nullsStripped = 0;
while (dataLen) {
- iconv (ic, (&bufIn), (size_t *) (&dataLen), &bufOut,
- (size_t *) (&outBufLen));
+ iconv (ic, (&bufIn), &dataLen, &bufOut,
+ &outBufLen);
if (buf == bufOut) {
warning ("iconv failed when converting resource '%s'.",
get_label_from_offset (labels, idx->labelOffset));
}
}
if (te->indexes[i].length > 2) {
- uint32_t contentLen = xmlStrlen (n), outBufLen =
- te->indexes[i].length;
+ size_t contentLen = xmlStrlen (n);
+ size_t outBufLen = te->indexes[i].length;
textBuffer =
realloc (textBuffer,
if ((*(uint32_t *) n & 0xFFFFFF) == UTF8_BOM) {
char bom[4];
char *bomPtr = bom;
- uint32_t bomLen =
+ size_t bomLen =
(fmt == RCO_TEXT_FMT_UTF32 ? 4 : (fmt ==
RCO_TEXT_FMT_UTF8 ? 3 : 2));
- iconv (ic, (char **) (&n), (size_t *) (&contentLen),
- (char **) &bomPtr, (size_t *) (&bomLen));
+ iconv (ic, (char **) (&n), &contentLen,
+ (char **) &bomPtr, &bomLen);
}
- iconv (ic, (char **) (&n), (size_t *) (&contentLen), &tbPtr,
- (size_t *) (&outBufLen));
+ iconv (ic, (char **) (&n), &contentLen, &tbPtr,
+ &outBufLen);
if (outBufLen && outBufLen == charWidth) { // *should*
// always be
// true