Revision: 76945
http://sourceforge.net/p/brlcad/code/76945
Author: starseeker
Date: 2020-08-25 16:10:26 +0000 (Tue, 25 Aug 2020)
Log Message:
-----------
When constructing the string, use the explicit buflen from the mapped file.
Modified Paths:
--------------
brlcad/trunk/regress/repository/repocheck.cpp
Modified: brlcad/trunk/regress/repository/repocheck.cpp
===================================================================
--- brlcad/trunk/regress/repository/repocheck.cpp 2020-08-25 15:41:33 UTC
(rev 76944)
+++ brlcad/trunk/regress/repository/repocheck.cpp 2020-08-25 16:10:26 UTC
(rev 76945)
@@ -397,7 +397,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
int lcnt = 0;
@@ -468,7 +468,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
int lcnt = 0;
@@ -546,7 +546,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
int lcnt = 0;
@@ -599,7 +599,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
@@ -701,7 +701,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
int lcnt = 0;
@@ -768,7 +768,7 @@
continue;
}
- std::string fbuff((char *)ifile->buf);
+ std::string fbuff((char *)ifile->buf, ifile->buflen);
std::istringstream fs(fbuff);
//std::cout << "Reading " << srcs[i] << "\n";
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits