From 3e5f28fefaf960490a114f38dc9799bcc99a9f8a Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 10 May 2014 19:25:59 +0200 Subject: [PATCH] src/gui/hdd_menu.cpp: remove '\n' for all msg Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8acad336baa3d65100ed038378f445f3f498ce9e Author: Jacek Jendrzej Date: 2014-05-10 (Sat, 10 May 2014) Origin message was: ------------------ src/gui/hdd_menu.cpp: remove '\n' for all msg --- src/gui/hdd_menu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index bee9c69bd..64c10ff1f 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -1029,11 +1029,13 @@ int CHDDMenuHandler::checkDevice(std::string dev) progress->showLocalStatus(percent); } } - else if(!strncmp(buf, "Pass", 4)) { + else { char *t = strrchr(buf, '\n'); if (t) *t = 0; - progress->showStatusMessageUTF(buf); + if(!strncmp(buf, "Pass", 4)) { + progress->showStatusMessageUTF(buf); + } } } //printf("CHDDChkExec: %s\n", buf);