dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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