mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
fix mem corruption originating in load_xoap_keys
This commit is contained in:
parent
588c296784
commit
a1d1a4f076
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user