git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95676
13f79535-47bb-0310-9956-
ffa450edef68
{
int windowSize;
int memlevel;
- int bufferSize;
+ apr_size_t bufferSize;
char *noteName;
} deflate_filter_config;
{
deflate_filter_config *c = ap_get_module_config(cmd->server->module_config,
&deflate_module);
+ int n = atoi(arg);
- c->bufferSize = atoi(arg);
-
- if (c->bufferSize <= 0) {
+ if (n <= 0) {
return "DeflateBufferSize should be positive";
}
+ c->bufferSize = (apr_size_t)n;
+
return NULL;
}
static const char *deflate_set_note(cmd_parms *cmd, void *dummy,