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,13 +1029,15 @@ 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;
if(!strncmp(buf, "Pass", 4)) {
progress->showStatusMessageUTF(buf);
}
}
}
//printf("CHDDChkExec: %s\n", buf);
res = pclose(f);
if(res)