diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-26 21:28:48 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-07-03 02:57:07 +0200 |
commit | 2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf (patch) | |
tree | 1051e486f80572eba45d714b840d62d1f5a94ecd /kdecore | |
parent | 3acd2816bb3a1c274e9690e669c28c2761232cc5 (diff) | |
download | tdelibs-2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf.tar.gz tdelibs-2afebdbe7fd3aee27f3972c78d8f5ff56c0136cf.zip |
Fix a number of tdelibs build warnings
(cherry picked from commit 77f4891c222583c8deffc34732ccf325bac9e11b)
Diffstat (limited to 'kdecore')
-rw-r--r-- | kdecore/kcrash.cpp | 5 |
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.... |