1
0
mirror of https://github.com/janet-lang/janet synced 2026-03-10 17:59:48 +00:00

Remove xprintf reference.

This commit is contained in:
Calvin Rose
2026-01-22 20:14:46 -06:00
parent 6111291ede
commit 883dde4fa5

View File

@@ -482,7 +482,7 @@ static void savehistory(void) {
FILE *history_file = fopen(gbl_history_file, "wb");
for (int i = 0; i < gbl_history_count; i++) {
if (gbl_history[i][0]) { /* Drop empty strings */
janet_xprintf(history_file, "%j\n", janet_cstringv(gbl_history[i]));
janet_dynprintf("", history_file, "%j\n", janet_cstringv(gbl_history[i]));
}
}
fclose(history_file);