From: eap Date: Tue, 22 Apr 2008 16:56:36 +0000 (+0000) Subject: remove ^A symbol from a tail of blsurf message X-Git-Tag: V4_1_2rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6ab922f0a5a07d1a06d79616d43c8f919c848fe3;p=plugins%2Fblsurfplugin.git remove ^A symbol from a tail of blsurf message --- 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; }