Skip to content

Instantly share code, notes, and snippets.

@apoleon
Created September 27, 2013 16:34
Show Gist options
  • Save apoleon/6731319 to your computer and use it in GitHub Desktop.
Save apoleon/6731319 to your computer and use it in GitHub Desktop.
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