diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index b2bcfa8af..0a38d22a2 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -338,13 +338,18 @@ _notification_popup_refresh(Popup_Data *popup) } else { - endptr++; - if (endptr) + if (!endptr[0]) + height = width; + else { - height = strtol(endptr, NULL, 10); - if (errno || (height < 1)) height = 80; + endptr++; + if (endptr[0]) + { + height = strtol(endptr, NULL, 10); + if (errno || (height < 1)) height = width; + } + else height = width; } - else height = 80; } }