bugfix: check notification icon size correctly

CID 1039875
This commit is contained in:
Mike Blumenkrantz 2014-04-04 14:42:24 -04:00
parent 861db30df2
commit ed50455cde
1 changed files with 10 additions and 5 deletions

View File

@ -336,15 +336,20 @@ _notification_popup_refresh(Popup_Data *popup)
width = 80;
height = 80;
}
else
{
if (!endptr[0])
height = width;
else
{
endptr++;
if (endptr)
if (endptr[0])
{
height = strtol(endptr, NULL, 10);
if (errno || (height < 1)) height = 80;
if (errno || (height < 1)) height = width;
}
else height = width;
}
else height = 80;
}
}