summaryrefslogtreecommitdiffstats
path: root/kdecore/kcrash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kcrash.cpp')
-rw-r--r--kdecore/kcrash.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kdecore/kcrash.cpp b/kdecore/kcrash.cpp
index dd758f034..961dc2447 100644
--- a/kdecore/kcrash.cpp
+++ b/kdecore/kcrash.cpp
@@ -301,7 +301,10 @@ void KCrash::startDrKonqi( const char* argv[], int argc )
}
long pid;
read_socket(socket, buffer, header.arg_length);
- pid = *((long *) buffer);
+ pid = 0;
+ for (int k=0;k<sizeof(long);k++) {
+ pid = pid | (buffer[k] << ((sizeof(long)-1-k)*8));
+ }
alarm(0); // Seems we made it....