summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-07 23:52:52 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-12-21 02:16:16 +0100
commit34180e15ea386866402148e5f53c38cca99f82d5 (patch)
tree7b0a0502cd3820935e058fc4eb170c0084e2c226 /kdecore
parent7d055511ccb04746186fbcb7f4c2718fc7104397 (diff)
downloadtdelibs-34180e15ea386866402148e5f53c38cca99f82d5.tar.gz
tdelibs-34180e15ea386866402148e5f53c38cca99f82d5.zip
Fix drkonqui failure
This closes Bug 1005 (cherry picked from commit 0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0)
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/kcrash.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/kdecore/kcrash.cpp b/kdecore/kcrash.cpp
index 961dc2447..dd758f034 100644
--- a/kdecore/kcrash.cpp
+++ b/kdecore/kcrash.cpp
@@ -301,10 +301,7 @@ void KCrash::startDrKonqi( const char* argv[], int argc )
}
long pid;
read_socket(socket, buffer, header.arg_length);
- pid = 0;
- for (int k=0;k<sizeof(long);k++) {
- pid = pid | (buffer[k] << ((sizeof(long)-1-k)*8));
- }
+ pid = *((long *) buffer);
alarm(0); // Seems we made it....