Skip to content

Commit 6df9e94

Browse files
lucaswtfoote
andauthored
Longer char array for null termination needed (#514)
Co-authored-by: Tully Foote <[email protected]>
1 parent 9d10ac4 commit 6df9e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2/src/cache.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void createExtrapolationException1(ros::Time t0, ros::Time t1, std::string* erro
6666
{
6767
if (error_str)
6868
{
69-
char str[116]; // Text without formatting strings has 76, each timestamp has up to 20
69+
char str[117]; // Text without formatting strings has 77, each timestamp has up to 20
7070
snprintf(str, sizeof(str), "Lookup would require extrapolation at time %.09f, but only time %.09f is in the buffer", t0.toSec(), t1.toSec());
7171
*error_str = str;
7272
}

0 commit comments

Comments
 (0)