ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Check the docu for sprintf: http://www.cplusplus.com/reference/cstdio/sprintf/ "The buffer should be large enough to contain the resulting string." So initialize 'persona' with a sufficient length. It's also a good practice to use english variable names so that people can understand your code better if you ask for help.