- if ((oldval = getenv(buf)))
- { newval = (unsigned char*)malloc(strlen(oldval) + strlen(buf) + strlen(&c[1]) + 3);
+ if ((oldval = (unsigned char*)getenv((const char*)buf)))
+ { newval = (unsigned char*)rfx_alloc(strlen((const char*)oldval) + strlen((const char *)buf) + strlen((const char*)&c[1]) + 3);
- sprintf(newval, "%s#%s", buf, oldval);
+ sprintf((char*)newval, "%s#%s", buf, oldval);
if (buf)
{ do
{ got = fread(buf + sofar, 1, size - sofar, stdin);
if (buf)
{ do
{ got = fread(buf + sofar, 1, size - sofar, stdin);
}
method = getenv("REQUEST_METHOD");
if ((method) && ! strcmp(method, "POST"))
{ query = swf_postread();
if ((query)&&(query[0]!=0)) swf_scanquery(query);
}
method = getenv("REQUEST_METHOD");
if ((method) && ! strcmp(method, "POST"))
{ query = swf_postread();
if ((query)&&(query[0]!=0)) swf_scanquery(query);