summaryrefslogtreecommitdiffstats
path: root/tdecore/kcrash.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-07 23:52:52 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-07 23:52:52 -0500
commit0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0 (patch)
tree3150bd711bd0651c1d1f6c83bcbc20d72a2847a5 /tdecore/kcrash.cpp
parent09d01cacf80d21ad213e6520b35e7f06e9546a83 (diff)
downloadtdelibs-0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0.tar.gz
tdelibs-0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0.zip
Fix drkonqui failure
This closes Bug 1005
Diffstat (limited to 'tdecore/kcrash.cpp')
-rw-r--r--tdecore/kcrash.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tdecore/kcrash.cpp b/tdecore/kcrash.cpp
index 4596a73ca..af9cc6dd7 100644
--- a/tdecore/kcrash.cpp
+++ b/tdecore/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....