{
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
- printf("regular expression error: %s at offset %l "
+ printf("regular expression error: %s at offset %ld "
"while compiling %s\n", errbuf, (long)offset, buffer);
exit(99);
}
uschar buf[24];
pcre2_config(PCRE2_CONFIG_VERSION, buf);
fprintf(fp, "Library version: PCRE2: Compile: %d.%d%s\n"
- " Runtime: %s\n",
+ " Runtime: %s\n",
PCRE2_MAJOR, PCRE2_MINOR,
EXPAND_AND_QUOTE(PCRE2_PRERELEASE) "",
buf);
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
expand_string_message = string_sprintf("regular expression error in "
- "\"%s\": %s at offset %l", sub[1], errbuf, (long)roffset);
+ "\"%s\": %s at offset %ld", sub[1], errbuf, (long)roffset);
goto EXPAND_FAILED;
}
md = pcre2_match_data_create(EXPAND_MAXN + 1, pcre_gen_ctx);
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
*error_pointer = string_sprintf("error while compiling "
- "regular expression \"%s\": %s at offset %l",
+ "regular expression \"%s\": %s at offset %ld",
exp[1], errbuf, (long)offset);
return FALSE;
}
{
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
- *errstr= string_sprintf("regular expression error in '%s': %s at offset %l",
+ *errstr= string_sprintf("regular expression error in '%s': %s at offset %ld",
re, errbuf, (long)roffset);
}
return cre;
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
log_write(0, LOG_MAIN,
- "regex acl condition warning - error in regex '%s': %s at offset %l, skipped.",
+ "regex acl condition warning - error in regex '%s': %s at offset %ld, skipped.",
regex_string, errbuf, (long)pcre_erroffset);
continue;
}
if ((rc = creds_load_pristring(state, p, &errpos)))
return tls_error_gnu(state, string_sprintf(
"gnutls_priority_init(%s) failed at offset %ld, \"%.6s..\"",
- p, errpos - CS p, errpos),
+ p, (long)(errpos - CS p), errpos),
rc, errstr);
}
else
rc = gnutls_priority_init(&priority_cache, CS expciphers, &errpos);
validate_check_rc(string_sprintf(
"gnutls_priority_init(%s) failed at offset %ld, \"%.8s..\"",
- expciphers, errpos - CS expciphers, errpos));
+ expciphers, (long)(errpos - CS expciphers), errpos));
#undef return_deinit
#undef validate_check_rc
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
addr->message = string_sprintf("appendfile: regular expression "
- "error: %s at offset %l while compiling %s", errbuf, (long)offset,
+ "error: %s at offset %ld while compiling %s", errbuf, (long)offset,
ob->quota_size_regex);
return FALSE;
}
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
addr->message = string_sprintf("appendfile: regular expression "
- "error: %s at offset %l while compiling %s", errbuf, (long)offset,
+ "error: %s at offset %ld while compiling %s", errbuf, (long)offset,
ob->maildir_dir_regex);
return FALSE;
}
uschar errbuf[128];
pcre2_get_error_message(err, errbuf, sizeof(errbuf));
addr->message = string_sprintf("appendfile: regular expression "
- "error: %s at offset %l while compiling %s", errbuf, (long)offset,
+ "error: %s at offset %ld while compiling %s", errbuf, (long)offset,
maildirfolder_create_regex);
return FALSE;
}