aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-01-13 23:19:28 +1100
committerNicholas Tay <nick@windblume.net>2022-01-13 23:19:28 +1100
commit1414a5667339637ca815dee52a527abb9bcfc528 (patch)
treead99cc064060e5438e4e598da5911b7d8adec069 /config.h
parentafd063a3ce9936f5eb1f5fd00fff6423f782994e (diff)
downloadpassgen-1414a5667339637ca815dee52a527abb9bcfc528.tar.gz
passgen-1414a5667339637ca815dee52a527abb9bcfc528.tar.bz2
passgen-1414a5667339637ca815dee52a527abb9bcfc528.zip
Use static buffers for regular password generation
This is probably a micro-optimisation, but since that is partly the point of this random C project, let's do it :)
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index 8a3e1c9..45cec00 100644
--- a/config.h
+++ b/config.h
@@ -1,5 +1,8 @@
#define DEFAULT_GRAMMAR "Cvccvc!##"
+/* Use some static buffers to avoid malloc */
+#define STATIC_BUFFER_SIZE 24
+
/*
* For vowels:
* i, o excluded due to potentially confusing 1/l/i + 0/o