[ros-diffs] [dgorbachev] 44413: Fix a potential buffer owerflow. Noticed by Martin Ettl with cppcheck. Bug #4987.