summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/CCpp.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-21 18:45:21 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-21 18:45:21 +0100
commit8cf58297d9743bdbfdddb605cc9cefe0c6273ee5 (patch)
tree852586ab7596bd0225a586413b6baafddc6b682b /lib/Plugins/CCpp.cpp
parentfdfcf65903c2f1f3abc7dd4cabb9cf7d170669a1 (diff)
downloadabrt-8cf58297d9743bdbfdddb605cc9cefe0c6273ee5.tar.gz
abrt-8cf58297d9743bdbfdddb605cc9cefe0c6273ee5.tar.xz
abrt-8cf58297d9743bdbfdddb605cc9cefe0c6273ee5.zip
TicketUploader and FileTransfer plugins: fixes after a round of testing
for one, FileTransfer now would not use current dir as a storage for temp files. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
-rw-r--r--lib/Plugins/CCpp.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 28e6bac..5838bc4 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -417,9 +417,7 @@ static void InstallDebugInfos(const char *pDebugDumpDir,
char buff[1024];
while (fgets(buff, sizeof(buff), pipeout_fp))
{
- int last = strlen(buff) - 1;
- if (last >= 0 && buff[last] == '\n')
- buff[last] = '\0';
+ strchrnul(buff, '\n')[0] = '\0';
if (strncmp(buff, "MISSING:", 8) == 0)
{