IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 150c0b40 authored by Ralf Ulrich's avatar Ralf Ulrich
Browse files

Merge branch 'fix_string_fill' into 'master'

also fill rest of string

See merge request !3
parents e400757e db1fa494
No related branches found
No related tags found
1 merge request!3also fill rest of string
...@@ -88,7 +88,9 @@ namespace corsika_data { ...@@ -88,7 +88,9 @@ namespace corsika_data {
void CorDataNextText(char* data, const int maxlength) { void CorDataNextText(char* data, const int maxlength) {
std::string STR; std::string STR;
CorDataNextText(STR); CorDataNextText(STR);
for (int i = 0; i < maxlength && i < (int)STR.size(); ++i) data[i] = STR[i]; int i = 0;
for (; i < maxlength && i < (int)STR.size(); ++i) data[i] = STR[i];
for (; i < maxlength; ++i) data[i] = 0;
} }
bool CorDataCanDeCompress() { return true; } bool CorDataCanDeCompress() { return true; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment