dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone
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
d9d99f
index dcd82494309..f90071353ad 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
     {