shithub: choc

Download patch

ref: bcd7cbb3774bbe1fa830461f750c810a1f742c4b
parent: db7d9dbf7e05fa41e30501127581c612c9846ceb
author: Turo Lamminen <[email protected]>
date: Tue Jun 2 14:10:08 EDT 2020

heretic: Reconstruct textBuffer from SlotText and slotptr

Silences a GCC 10 warning

--- a/src/heretic/mn_menu.c
+++ b/src/heretic/mn_menu.c
@@ -1527,7 +1527,7 @@
             {
                 *textBuffer = 0;
                 slotptr--;
-                textBuffer--;
+                textBuffer = &SlotText[currentSlot][slotptr];
                 *textBuffer = ASCII_CURSOR;
             }
             return (true);