From 9184c45297b1873b32061890279ffc5930ec9b25 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Thu, 27 Nov 2014 22:16:12 +0100 Subject: [PATCH] Fixing pointer deref gone wild. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index afe32a8..2e94190 100644 --- a/main.cpp +++ b/main.cpp @@ -20,7 +20,7 @@ void mcerror(const char *message) { } void mcmeta(const char *text) { - while (text != '\0' && *text == ' ') { + while (*text != '\0' && *text == ' ') { text += 1; } std::cerr << "META: " << text << std::endl;