p = malloc(3*strlen(sessionname)+1);
p = smalloc(3*strlen(sessionname)+1);
void *open_settings_w(char *sessionname) {    HKEY subkey1, sesskey;    int ret;    char *p;    p = malloc(3*strlen(sessionname)+1);    mungestr(sessionname, p);        ret = RegCreateKey(HKEY_CURRENT_USER, puttystr, &subkey1);    if (ret != ERROR_SUCCESS) {        free(p);        return NULL;    }    ret = RegCreateKey(subkey1, p, &sesskey);    free(p);    RegCloseKey(subkey1);    if (ret != ERROR_SUCCESS)        return NULL;    return (void *)sesskey;}