Skip to content
Snippets Groups Projects
Commit 28f9c9f3 authored by Stephan Wirth's avatar Stephan Wirth
Browse files

increased buffer size for friendly_pose sprintf

parent 22a4bdfa
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,7 @@ double segment_alpha(const double p0[2], const double p1[2]) {
}
static char tmp_buf[100];
static char tmp_buf[1024];
const char* friendly_pose(const double*pose) {
sprintf(tmp_buf, "(%4.2f mm, %4.2f mm, %4.4f deg)",
1000*pose[0],1000*pose[1],rad2deg(pose[2]));
......
......@@ -66,7 +66,7 @@ const char* gsl_friendly_pose(gsl_vector*v) {
return friendly_pose(v->data);
}
static char egsl_tmp_buf[100];
static char egsl_tmp_buf[1024];
const char* egsl_friendly_pose(val v) {
sprintf(egsl_tmp_buf, "(%4.2f mm, %4.2f mm, %4.4f deg)",
1000*egsl_atv(v,0),
......
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