diff mbox series

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

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

Commit Message

Stijn Devriendt May 29, 2020, 6:58 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.

Signed-off-by: Stijn Devriendt <sde@unmatched.eu>
 include/swupdate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


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;