From 6ab922f0a5a07d1a06d79616d43c8f919c848fe3 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 22 Apr 2008 16:56:36 +0000 Subject: [PATCH] remove ^A symbol from a tail of blsurf message --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 393f25c..9eb0c38 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -574,7 +574,11 @@ status_t message_callback(message_t *msg, void *user_data) message_get_description(msg, &desc); // if ( !error->empty() ) // *error += "\n"; - *error += desc; + // remove ^A from the tail + int len = strlen( desc ); + while (len > 0 && desc[len-1] != '\n') + len--; + error->append( desc, len ); } return STATUS_OK; } -- 2.39.2