commit 14f17c36010ec9428aeca8f6f5b1ad3e285655d1
parent 8cfa180fae5399837f7dcddaa7b8f998422a7429
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 8 Jun 2025 14:07:06 +0200
tweaks: use the correct modifier, to avoid a warning on 32-bit machines
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/history.c b/src/history.c
@@ -357,7 +357,7 @@ char *stringify_anchors(void)
for (linestruct *line = openfile->filetop; line != NULL; line = line->next)
if (line->has_anchor) {
- sprintf(number, "%li ", line->lineno);
+ sprintf(number, "%zi ", line->lineno);
string = nrealloc(string, strlen(string) + strlen(number) + 1);
strcat(string, number);
}