summaryrefslogtreecommitdiffstats
path: root/layout-custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'layout-custom.c')
-rw-r--r--layout-custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout-custom.c b/layout-custom.c
index 88fcde1f..8a4f08dc 100644
--- a/layout-custom.c
+++ b/layout-custom.c
@@ -207,7 +207,7 @@ layout_construct(struct layout_cell *lcparent, const char **layout)
if (!isdigit((u_char) **layout))
return (NULL);
- if (sscanf(*layout, "%ux%u,%u,%u,%*u", &sx, &sy, &xoff, &yoff) != 5 &&
+ if (sscanf(*layout, "%ux%u,%u,%u,%*u", &sx, &sy, &xoff, &yoff) != 4 &&
sscanf(*layout, "%ux%u,%u,%u", &sx, &sy, &xoff, &yoff) != 4)
return (NULL);