diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c index 31d467de..cb767e6c 100644 --- a/WPrefs.app/MouseSettings.c +++ b/WPrefs.app/MouseSettings.c @@ -768,7 +768,8 @@ static void storeData(_Panel * panel) tmp = WMGetPopUpButtonItem(panel->grabP, WMGetPopUpButtonSelectedItem(panel->grabP)); tmp = wstrdup(tmp); p = strchr(tmp, ' '); - *p = 0; + if (p != NULL) + *p = '\0'; SetStringForKey(tmp, "ModifierKey");