From 28f9c9f3f84f0bf73829f7843a34ca472738b400 Mon Sep 17 00:00:00 2001
From: Stephan Wirth <swirth@willowgarage.com>
Date: Tue, 19 Mar 2013 10:02:40 -0700
Subject: [PATCH] increased buffer size for friendly_pose sprintf

---
 sm/csm/math_utils.c     | 2 +-
 sm/csm/math_utils_gsl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sm/csm/math_utils.c b/sm/csm/math_utils.c
index 04e66e4..275aabf 100644
--- a/sm/csm/math_utils.c
+++ b/sm/csm/math_utils.c
@@ -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]));
diff --git a/sm/csm/math_utils_gsl.c b/sm/csm/math_utils_gsl.c
index 5ec42d3..1bb120c 100644
--- a/sm/csm/math_utils_gsl.c
+++ b/sm/csm/math_utils_gsl.c
@@ -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),
-- 
GitLab