Summary Files Commits Branches @commit @diff @stats
path: root / fmt.c
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--fmt.c4
diff --git a/fmt.c b/fmt.c
index 0c47e00..44cd3df 100644
--- a/fmt.c
+++ b/fmt.c
@@ -10,12 +10,12 @@ void
fmt_context_id(uint64_t num, char *out, int withSeparator)
{
/* flawfinder: ignore. bound checks are done */
- char buf[BADWOLF_CTX_SIZ] = {0, 0, 0, 0, 0, 0, 0};
+ char buf[GOODWOLF_CTX_SIZ] = {0, 0, 0, 0, 0, 0, 0};
int len = 2;
buf[++len] = alpha_digits[num % 26];
num /= 26;
- while(num > 0 && len < (BADWOLF_CTX_SIZ - 1))
+ while(num > 0 && len < (GOODWOLF_CTX_SIZ - 1))
{
buf[++len] = alpha_digits[(num - 1) % 26];
num /= 26;