emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8c448c6b4f7: Silence warning in print.c


From: Stefan Kangas
Subject: master 8c448c6b4f7: Silence warning in print.c
Date: Sun, 17 Dec 2023 05:58:38 -0500 (EST)

branch: master
commit 8c448c6b4f75bb1cb1c560d7a674bd349147d2c8
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Silence warning in print.c
    
    * src/print.c (print_bool_vector): Silence warning.
---
 src/print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/print.c b/src/print.c
index a5d57adbd3b..09e00329676 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1618,7 +1618,7 @@ print_bool_vector (Lisp_Object obj, Lisp_Object 
printcharfun)
   ptrdiff_t real_size_in_bytes = size_in_bytes;
   unsigned char *data = bool_vector_uchar_data (obj);
 
-  char buf[sizeof "#&" + INT_STRLEN_BOUND (ptrdiff_t)];
+  char buf[sizeof "#&\"" + INT_STRLEN_BOUND (ptrdiff_t)];
   int len = sprintf (buf, "#&%"pI"d\"", size);
   strout (buf, len, len, printcharfun);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]