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