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