IAP GITLAB

Skip to content
Snippets Groups Projects
Commit db1fa494 authored by ralfulrich's avatar ralfulrich
Browse files

also fill rest of string

parent e400757e
No related branches found
No related tags found
1 merge request!3also fill rest of string
......@@ -88,7 +88,9 @@ namespace corsika_data {
void CorDataNextText(char* data, const int maxlength) {
std::string 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; }
......
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