diff mbox series

[2/5] doc_parse/data_storage: Bump the array max size

Message ID 20201216101012.14644-3-chrubis@suse.cz
State Accepted
Headers show
Series Small docparser fixes | expand

Commit Message

Cyril Hrubis Dec. 16, 2020, 10:10 a.m. UTC
Bump the array size to 100 from 20 for now. I will rewrite the code to
reallocate the array if needed later on.

At least now we won't have longer description comments cut in half.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 docparse/data_storage.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Petr Vorel Dec. 17, 2020, 3:35 p.m. UTC | #1
> Bump the array size to 100 from 20 for now. I will rewrite the code to
> reallocate the array if needed later on.

> At least now we won't have longer description comments cut in half.
+1

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr
diff mbox series

Patch

diff --git a/docparse/data_storage.h b/docparse/data_storage.h
index 1a9265f92..ef420c08f 100644
--- a/docparse/data_storage.h
+++ b/docparse/data_storage.h
@@ -64,7 +64,7 @@  static inline struct data_node *data_node_string(const char *string)
 	return node;
 }
 
-#define MAX_ELEMS 20
+#define MAX_ELEMS 100
 
 static inline struct data_node *data_node_hash(void)
 {