summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redo/table_windows.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/table_windows.c b/redo/table_windows.c
index 28d606f..25cc81b 100644
--- a/redo/table_windows.c
+++ b/redo/table_windows.c
@@ -109,7 +109,7 @@ void setTableSubclass(HWND hwnd, void *data)
{
struct tableData *t;
- t = (struct tableData *) malloc(sizeof (struct tableData *));
+ t = (struct tableData *) malloc(sizeof (struct tableData));
if (t == NULL)
xpanic("error allocating structure for Table extra data", GetLastError());
ZeroMemory(t, sizeof (struct tableData));