summarylogtreecommitdiffstats
path: root/pointer-recast-hack.patch
blob: 9fa5a10796ecdd4a76c1dac55fbee74d4377c646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --no-dereference -urpN a/stage2/stage2.c b/stage2/stage2.c
--- a/stage2/stage2.c	2025-05-12 13:42:56.480940365 +0200
+++ b/stage2/stage2.c	2025-05-12 13:46:43.285305908 +0200
@@ -939,9 +939,9 @@ cmain (void)
 		  if((tmp = grub_strstr(p, ":")) != NULL)
 		  {
 		    *tmp++;
-		    grub_strcpy(&def, &tmp);
+		    grub_strcpy((const char *)&def, (char *)&tmp);
 		  }else
-		    grub_strcpy(&def, &p);
+		    grub_strcpy((const char *)&def, (char *)&p);
 		  
 		  safe_parse_maxint (&def, &saved_entryno);
 		}