1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 01:34:11 +00:00

fix mem corruption originating in load_xoap_keys

This commit is contained in:
James Morris 2013-01-12 17:05:52 +00:00
parent 588c296784
commit a1d1a4f076

View File

@ -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");