- if ((oldval = getenv(buf)))
- { newval = (unsigned char*)rfx_alloc(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);