diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-06 14:52:32 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-06 14:52:32 +0100 |
| commit | 80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e (patch) | |
| tree | 7a918cf24387674f602cc71d0dc6a57dff808fc6 /lib/Plugins/CCpp.cpp | |
| parent | af0053c1e3fe0cf938b7ad0ac26058a18e7e2c44 (diff) | |
| download | abrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.tar.gz abrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.tar.xz abrt-80975b02ec1a2e8dfc6f7ce21e47cf71b16b5a6e.zip | |
lib/Plugins/FileTransfer: massive surgery
text data bss dec hex filename
50212 2144 16 52372 cc94 0/libTicketUploader.so
34693 1888 24 36605 8efd 1/libTicketUploader.so
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
| -rw-r--r-- | lib/Plugins/CCpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 3a3604b..a2d65f3 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -95,7 +95,6 @@ static std::string concat_str_vector(char **strings) static pid_t ExecVP(char** pArgs, uid_t uid, std::string& pOutput) { int pipeout[2]; - char buff[1024]; pid_t child; struct passwd* pw = getpwuid(uid); @@ -137,6 +136,7 @@ static pid_t ExecVP(char** pArgs, uid_t uid, std::string& pOutput) close(pipeout[1]); /* write side of the pipe */ int r; + char buff[1024]; while ((r = read(pipeout[0], buff, sizeof(buff) - 1)) > 0) { buff[r] = '\0'; |
