Blame SOURCES/0003-get_number-Add-missing-NUL-termination-for-the-scann.patch

11487f
From 0589b06aa369efd3cd5dfc0bba9a868f48a14506 Mon Sep 17 00:00:00 2001
11487f
From: Tomas Mraz <tmraz@fedoraproject.org>
11487f
Date: Wed, 5 Jan 2022 19:17:18 +0100
11487f
Subject: [PATCH 3/5] get_number: Add missing NUL termination for the scanned
11487f
 string
11487f
11487f
---
11487f
 src/entry.c | 1 +
11487f
 1 file changed, 1 insertion(+)
11487f
11487f
diff --git a/src/entry.c b/src/entry.c
11487f
index f2bb717..15ce9b5 100644
11487f
--- a/src/entry.c
11487f
+++ b/src/entry.c
11487f
@@ -666,6 +666,7 @@ get_number(int *numptr, int low, const char *names[], FILE * file) {
11487f
 			goto bad;
11487f
 		*pc++ = (char)ch;
11487f
 	}
11487f
+	*pc = '\0';
11487f
 	if (len == 0)
11487f
 		goto bad;
11487f
 
11487f
-- 
11487f
2.36.1
11487f