summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:52:01 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 15:52:01 -0500
commite6a78ded90dbe5d67a5ddda616534b55db663993 (patch)
treead1befb334612070fb36c097efb6c8ba94a1e594
parent6ed1ea98db6b1b369e7561efcc2c666b810e5446 (diff)
parent0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0 (diff)
downloadtdelibs-e6a78ded90dbe5d67a5ddda616534b55db663993.tar.gz
tdelibs-e6a78ded90dbe5d67a5ddda616534b55db663993.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
-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....