diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2010-09-22 10:53:56 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2010-09-22 10:53:56 -0400 |
commit | bf665822fc371159c9fc6630ab805638c58ab299 (patch) | |
tree | a85a0ee9a271bf9cde1108daca90b657f0aed5f9 /src/LYHistory.c | |
parent | 2bfdbc116276afc90c803427e7af7b44a0c11c66 (diff) | |
download | lynx-snapshots-bf665822fc371159c9fc6630ab805638c58ab299.tar.gz |
snapshot of project "lynx", label v2-8-8dev_5b
Diffstat (limited to 'src/LYHistory.c')
-rw-r--r-- | src/LYHistory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYHistory.c b/src/LYHistory.c index f9712534..34ec0b1a 100644 --- a/src/LYHistory.c +++ b/src/LYHistory.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYHistory.c,v 1.77 2010/04/29 08:55:40 tom Exp $ + * $LynxId: LYHistory.c,v 1.78 2010/09/22 10:49:45 tom Exp $ */ #include <HTUtils.h> #include <HTTP.h> @@ -347,7 +347,7 @@ void LYAllocHistory(int entries) int save = size_history; size_history = (entries + 2) * 2; - want = (unsigned) size_history *sizeof(*history); + want = (unsigned) size_history *(unsigned) sizeof(*history); if (history == 0) { history = (HistInfo *) malloc(want); @@ -995,7 +995,7 @@ static void to_stack(char *str) * Register string. */ if (buffstack == 0) - buffstack = typecallocn(char *, status_buf_size); + buffstack = typecallocn(char *, (size_t) status_buf_size); FREE(buffstack[topOfStack]); buffstack[topOfStack] = str; |