[packages/sap] - zero whole buffer

witekfl witekfl at pld-linux.org
Sat Jun 13 18:20:46 CEST 2026


commit 53c5dcbbee24effc073dfb77c02ccac79c9c089a
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Sat Jun 13 18:17:31 2026 +0200

    - zero whole buffer

 zero.patch | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
---
diff --git a/zero.patch b/zero.patch
new file mode 100644
index 0000000..44d94cf
--- /dev/null
+++ b/zero.patch
@@ -0,0 +1,21 @@
+diff -up sap-0.2/src/charfilter.c.old sap-0.2/src/charfilter.c
+--- sap-0.2/src/charfilter.c.old	2026-06-13 18:12:16.743792859 +0200
++++ sap-0.2/src/charfilter.c	2026-06-13 18:12:56.331456608 +0200
+@@ -35,7 +35,7 @@ int alt_fprintf(int asciionly_mode, FILE
+         retcode=fputs(my_tempy2, fd);
+ #else
+         if (utf8) {
+-            char utf8_chars[8192*8];
++            char utf8_chars[8192*8]={0};
+             char *koniec=utf8_chars;
+             char *buf=my_tempy1;
+             size_t length=strlen(my_tempy1);
+@@ -44,7 +44,7 @@ int alt_fprintf(int asciionly_mode, FILE
+ 
+             iconv(cd, &buf, &length, &koniec, &length_utf8);
+             iconv_close(cd);
+-            *koniec='\0';
++            //*koniec='\0';
+             retcode=fputs(utf8_chars, fd);
+         } else
+             retcode=fputs(my_tempy1, fd);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sap.git/commitdiff/4fc62486f0f18190e7695cdee285fb67db41791e



More information about the pld-cvs-commit mailing list