Created
September 27, 2013 16:34
-
-
Save apoleon/6731319 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Markus Koschany <apo@gambaru.de> | |
Date: Fri, 27 Sep 2013 16:31:14 +0200 | |
Subject: json_export out of bounds | |
--- | |
src/komat/json_export.cpp | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/src/komat/json_export.cpp b/src/komat/json_export.cpp | |
index c9e4167..e1f7174 100644 | |
--- a/src/komat/json_export.cpp | |
+++ b/src/komat/json_export.cpp | |
@@ -630,7 +630,7 @@ char* name_cleaner(char* name){ | |
tempString[i] = '_'; | |
} | |
} | |
- tempString[30] = '\0'; | |
+ tempString[29] = '\0'; | |
return tempString; | |
} | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment