diff mbox series

[3/3] Bump size of ivt_ascii field to 33 bytes to include zero-terminator

Message ID 20200526090103.6489-3-sde@unmatched.eu
State Changes Requested
Headers show
Series [1/3] ascii_to_bin: rename arguments to clarify function | expand

Commit Message

Stijn Devriendt May 26, 2020, 9:01 a.m. UTC
This field originates from the sw-description file where it is copied
using strncpy - i.e. a string. It's also passed into ascii_to_bin, which
expects a zero-terminated string as input.
---
 include/swupdate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/swupdate.h b/include/swupdate.h
index eccd54a..25defed 100644
--- a/include/swupdate.h
+++ b/include/swupdate.h
@@ -74,7 +74,7 @@  struct img_type {
 	int compressed;
 	int preserve_attributes; /* whether to preserve attributes in archives */
 	int is_encrypted;
-	char ivt_ascii[32];
+	char ivt_ascii[33];
 	int install_directly;
 	int is_script;
 	int is_partitioner;