nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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