Commit c85837e9 authored by claes's avatar claes

Newline at and of message removed

parent a5e8fe5a
/**
* Proview $Id: co_msglist.cpp,v 1.11 2008-12-03 12:00:38 claes Exp $
* Proview $Id: co_msglist.cpp,v 1.12 2008-12-03 12:08:44 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -520,6 +520,10 @@ ItemMsg::ItemMsg( MsgList *item_msglist, const char *item_name,
strncpy( text, item_text, sizeof(text));
text[sizeof(text)-1] = 0;
// Remove newline at end
if ( text[strlen(text)-1] == '\n')
text[strlen(text)-1] = 0;
switch ( severity) {
case 'S':
brow_CreateNode( msglist->brow->ctx, (char *)"Success", msglist->brow->nc_success,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment