src/gui/hdd_menu.cpp: remove '\n' for all msg

Origin commit data
------------------
Commit: 8acad336ba
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-05-10 (Sat, 10 May 2014)

Origin message was:
------------------
src/gui/hdd_menu.cpp: remove '\n' for all msg
This commit is contained in:
Jacek Jendrzej
2014-05-10 19:25:59 +02:00
parent 71171eb50e
commit 3e5f28fefa

View File

@@ -1029,11 +1029,13 @@ int CHDDMenuHandler::checkDevice(std::string dev)
progress->showLocalStatus(percent); progress->showLocalStatus(percent);
} }
} }
else if(!strncmp(buf, "Pass", 4)) { else {
char *t = strrchr(buf, '\n'); char *t = strrchr(buf, '\n');
if (t) if (t)
*t = 0; *t = 0;
progress->showStatusMessageUTF(buf); if(!strncmp(buf, "Pass", 4)) {
progress->showStatusMessageUTF(buf);
}
} }
} }
//printf("CHDDChkExec: %s\n", buf); //printf("CHDDChkExec: %s\n", buf);