X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/7ee1be42694a39172a0851a655e9784459e77be6..11fbfffcc1282501b163d2493f84334184487e5e:/spectrwm.c diff --git a/spectrwm.c b/spectrwm.c index 86fb7af..4cd953c 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -9751,6 +9751,10 @@ conf_load(const char *filename, int keymapping) configopt[optidx].optname); continue; } + /* trim trailing spaces */ + ce = optval + strlen(optval) - 1; + while (ce > optval && isspace(*ce)) --ce; + *(ce + 1) = '\0'; /* call function to deal with it all */ if (configopt[optidx].func(optsub, optval, configopt[optidx].funcflags) != 0) {