diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-08 15:52:01 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-08 15:52:01 -0500 |
commit | e6a78ded90dbe5d67a5ddda616534b55db663993 (patch) | |
tree | ad1befb334612070fb36c097efb6c8ba94a1e594 /tdecore | |
parent | 6ed1ea98db6b1b369e7561efcc2c666b810e5446 (diff) | |
parent | 0dcda4bbff4a3f20472833b09f4d4e2aff09a7a0 (diff) | |
download | tdelibs-e6a78ded90dbe5d67a5ddda616534b55db663993.tar.gz tdelibs-e6a78ded90dbe5d67a5ddda616534b55db663993.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/kcrash.cpp | 5 |
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.... |