{
struct ReplaceList *t = NULL, *last = NULL;
struct Regex *rx = NULL;
- size_t n;
const char *p = NULL;
if (!pat || !*pat || !templ)
{
if (*p == '%')
{
- n = atoi(++p);
+ int n = atoi(++p);
if (n > t->nmatch)
t->nmatch = n;
while (*p && isdigit((int) *p))
static char twinbuf[2][LONG_STRING];
int switcher = 0;
char *p = NULL;
- size_t n;
size_t cpysize, tlen;
char *src = NULL, *dst = NULL;
}
else
{
- n = strtoul(p, &p, 10); /* get subst number */
+ long n = strtoul(p, &p, 10); /* get subst number */
while (isdigit((unsigned char) *p)) /* skip subst token */
p++;
for (int i = pmatch[n].rm_so;
if (*p == '%')
{
char *e = NULL; /* used as pointer to end of integer backreference in strtol() call */
- size_t n;
p++; /* skip over % char */
- n = strtol(p, &e, 10);
+ long n = strtol(p, &e, 10);
/* Ensure that the integer conversion succeeded (e!=p) and bounds check. The upper bound check
* should not strictly be necessary since add_to_spam_list() finds the largest value, and
* the static array above is always large enough based on that value. */