diff options
Diffstat (limited to 'layout-custom.c')
-rw-r--r-- | layout-custom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layout-custom.c b/layout-custom.c index 932b30e..d7be5b1 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -162,8 +162,10 @@ layout_parse(struct window *w, const char *layout, char **cause) u_short csum; /* Check validity. */ - if (sscanf(layout, "%hx,", &csum) != 1) + if (sscanf(layout, "%hx,", &csum) != 1) { + *cause = xstrdup("invalid layout"); return (-1); + } layout += 5; if (csum != layout_checksum(layout)) { *cause = xstrdup("invalid layout"); |