shithub: femtolisp

Download patch

ref: a9cb34f653db7332a3b5ab562005cd0149c0ed6d
parent: 671da14940457f8b0a8c49ce82b998312b9c65e1
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Dec 23 15:31:44 EST 2024

trailing zeros trimming: null-terminate

--- a/print.c
+++ b/print.c
@@ -618,6 +618,7 @@
 			if(num_format[1] == 'e'){
 				while(*e)
 					s[sz++] = *e++;
+				s[sz] = 0;
 			}
 		}
 	}