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

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