diff options
author | scrouthtv <lennivh24@gmail.com> | 2021-02-28 18:29:41 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-02-28 18:29:41 +0000 |
commit | d52282a70f1fb542d269c0cde46b83eab1cffcb1 (patch) | |
tree | 54ad310506e978c670fa545fd649431ba9d9117a | |
parent | df7eed701a7f341277df5e92419174237cf93ce4 (diff) |
Added case for window_name_size == 0
-rw-r--r-- | xwud.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,7 +287,7 @@ main(int argc, char *argv[]) /* alloc window name */ win_name_size = (header.header_size - SIZEOF(XWDheader)); - if (win_name_size < 1) + if (win_name_size < 0) Error("win_name_size"); if((win_name = malloc((unsigned) win_name_size + 6)) == NULL) Error("Can't malloc window name storage."); |