diff options
author | Andrés <andmarti@gmail.com> | 2021-06-21 10:18:21 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-06-21 10:18:21 -0300 |
commit | aa6a8454760fa0030035885d5cd047e97cf88711 (patch) | |
tree | 9cbdd89deaec4f51cd6d6b2ecc9301e7b2ea05de | |
parent | 86503f7c8e7a4aba50b4d98dd5e2948ffe3d6ca9 (diff) |
xlsx.c: convert to uppercase before replacing functions
-rw-r--r-- | src/formats/xlsx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/formats/xlsx.c b/src/formats/xlsx.c index 3918b1a..48e22f6 100644 --- a/src/formats/xlsx.c +++ b/src/formats/xlsx.c @@ -312,9 +312,10 @@ void get_sheet_data(xmlDocPtr doc, xmlDocPtr doc_strings, xmlDocPtr doc_styles) ) { char * formula = (char *) child_node->xmlChildrenNode->xmlChildrenNode->content; char * strf; + uppercase(formula); // we take some excel common function and adds a @ to them - // we replace count sum avg with @count, @sum, @prod, @avg, @min, @max + // we replace count sum avg with @count, @sum, @prod, @avg, @min, @max strf = str_replace (formula, "COUNT","@COUNT"); strcpy(formula, strf); free(strf); |