shithub: choc

Download patch

ref: d88369c62e20083d42befda7e9ec9e1eac61ba71
parent: f8459dfd65a3b8aa0457c45516ace2db51d2845f
author: Mike Swanson <mikeonthecomputer@gmail.com>
date: Sun Oct 19 08:48:02 EDT 2014

i_video: fix an if condition in my previous commit

`else if (f == 'w')` doesn't really secure itself against
uninitialized memory, it still needs to test that `s == 3`.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1714,7 +1714,7 @@
             {
                 fullscreen = true;
             }
-            else if (f == 'w')
+            else if (s == 3 && f == 'w')
             {
                 fullscreen = false;
             }