summaryrefslogtreecommitdiffstats
path: root/tdecore/kcrash.cpp
diff options
context:
space:
mode:
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....