From a1d1a4f076a729c85eb94167acb9776d99dc0072 Mon Sep 17 00:00:00 2001 From: James Morris Date: Sat, 12 Jan 2013 17:05:52 +0000 Subject: [PATCH] fix mem corruption originating in load_xoap_keys --- src/weather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weather.c b/src/weather.c index b676d017..3c618387 100644 --- a/src/weather.c +++ b/src/weather.c @@ -879,7 +879,7 @@ void load_xoap_keys(void) FILE *fp; char *par = (char *) malloc(11 * sizeof(char)); char *key = (char *) malloc(17 * sizeof(char)); - char *xoap = (char *) malloc(64 * sizeof(char)); + char *xoap = (char *) malloc(DEFAULT_TEXT_BUFFER_SIZE * sizeof(char)); to_real_path(xoap, XOAP_FILE); fp = fopen(xoap, "r");