diff mbox series

[2/5] include: Replace zero-length array "msg" with C99 flexible-array.

Message ID 20230621213444.2017-1-cristian@rodriguez.im
State New
Headers show
Series None | expand

Commit Message

Cristian Rodríguez June 21, 2023, 9:34 p.m. UTC
Signed-off-by: Cristian Rodríguez <cristian@rodriguez.im>
---
 include/stdlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/stdlib.h b/include/stdlib.h
index 7deb8193d7..206ceb7435 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -360,7 +360,7 @@  libc_hidden_proto (__qfcvt_r)
 struct abort_msg_s
 {
   unsigned int size;
-  char msg[0];
+  char msg[];
 };
 extern struct abort_msg_s *__abort_msg;
 libc_hidden_proto (__abort_msg)