From 17ae285f37c99c6c8e0ea9a6b3419e4b72a601a7 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 30 Jan 2001 21:04:52 +0000 Subject: [PATCH] Fixed a bug causing sigsegv for a WMList with more than 32767 items --- WINGs/ChangeLog | 1 + WINGs/wlist.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WINGs/ChangeLog b/WINGs/ChangeLog index b1a3d45f..d6ef10c8 100644 --- a/WINGs/ChangeLog +++ b/WINGs/ChangeLog @@ -7,6 +7,7 @@ changes since wmaker 0.63.1: use #include in your application from now on. Also updated get-{wings|wutil}-flags. - Fixed a mem leak in WMList. +- Fixed a bug that caused sigsegv for a WMList with more than 32767 items. changes since wmaker 0.62.1: diff --git a/WINGs/wlist.c b/WINGs/wlist.c index df196dcc..56af1867 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -16,7 +16,7 @@ typedef struct W_List { short itemHeight; - short topItem; /* index of first visible item */ + int topItem; /* index of first visible item */ short fullFitLines; /* no of lines that fit entirely */