nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0101-don-t-ignore-const.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Peter Jones <pjones@redhat.com>
d9d99f
Date: Mon, 26 Jun 2017 12:43:22 -0400
d9d99f
Subject: [PATCH] don't ignore const
d9d99f
d9d99f
---
d9d99f
 grub-core/net/tftp.c | 2 +-
d9d99f
 1 file changed, 1 insertion(+), 1 deletion(-)
d9d99f
d9d99f
diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c
b71686
index dcd824943..f90071353 100644
d9d99f
--- a/grub-core/net/tftp.c
d9d99f
+++ b/grub-core/net/tftp.c
d9d99f
@@ -307,7 +307,7 @@ static void
d9d99f
 grub_normalize_filename (char *normalized, const char *filename)
d9d99f
 {
d9d99f
   char *dest = normalized;
d9d99f
-  char *src = filename;
d9d99f
+  const char *src = filename;
d9d99f
 
d9d99f
   while (*src != '\0')
d9d99f
     {