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

Origin commit data
------------------
Branch: ni/coolstream
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

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-05-10 19:25:59 +02:00
parent d4f68a0792
commit 0b2a9b580f

View File

@@ -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);