summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-06-21 10:18:21 -0300
committerAndrés <andmarti@gmail.com>2021-06-21 10:18:21 -0300
commitaa6a8454760fa0030035885d5cd047e97cf88711 (patch)
tree9cbdd89deaec4f51cd6d6b2ecc9301e7b2ea05de
parent86503f7c8e7a4aba50b4d98dd5e2948ffe3d6ca9 (diff)
xlsx.c: convert to uppercase before replacing functions
-rw-r--r--src/formats/xlsx.c3
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);