dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0252-tftp-Fix-a-minor-const-error.patch

28f7f8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
28f7f8
From: Peter Jones <pjones@redhat.com>
28f7f8
Date: Thu, 21 Jun 2018 19:09:11 -0400
28f7f8
Subject: [PATCH] tftp: Fix a minor const error
28f7f8
28f7f8
Signed-off-by: Peter Jones <pjones@redhat.com>
28f7f8
---
28f7f8
 grub-core/net/tftp.c | 2 +-
28f7f8
 1 file changed, 1 insertion(+), 1 deletion(-)
28f7f8
28f7f8
diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c
28f7f8
index 17583cba380..e267af354f4 100644
28f7f8
--- a/grub-core/net/tftp.c
28f7f8
+++ b/grub-core/net/tftp.c
28f7f8
@@ -307,7 +307,7 @@ static void
28f7f8
 grub_normalize_filename (char *normalized, const char *filename)
28f7f8
 {
28f7f8
   char *dest = normalized;
28f7f8
-  char *src = filename;
28f7f8
+  const char *src = filename;
28f7f8
 
28f7f8
   while (*src != '\0')
28f7f8
     {