{
/* Use "from,to" or just "from" */
const char *cp = strchr(record_charset, ',');
- int clen = strlen(record_charset);
+ size_t clen = strlen(record_charset);
if (cp && cp[1])
{
strncpy( to, cp+1, sizeof(to)-1);
char charset[40];
char xpath[512];
const char *cp;
- int i;
+ size_t i;
Z_NamePlusRecord *npr;
if (len)
i++;
if (!strncmp(type_spec+i, "charset=", 8))
{
- int j = 0;
+ size_t j = 0;
i = i + 8; /* skip charset= */
for (j = 0; type_spec[i] && j < sizeof(charset)-1; i++, j++)
{
}
else if (!strncmp(type_spec+i, "xpath=", 6))
{
- int j = 0;
+ size_t j = 0;
i = i + 6;
for (j = 0; type_spec[i] && j < sizeof(xpath)-1; i++, j++)
xpath[j] = cp[i];
*disp_len = 0;
*occ = 0;
- if (pos >= noent || pos < 0)
+ if (pos >= noent)
return;
if (scan->scan_response)
{