summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-26 21:28:48 -0600
commit77f4891c222583c8deffc34732ccf325bac9e11b (patch)
tree5123890a5c34e9297b26bdfa258cbe0ab9ad25c6 /tdecore
parent81dc14e8f035d33ab1de2c01314582ed2c17ad1c (diff)
downloadtdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.tar.gz
tdelibs-77f4891c222583c8deffc34732ccf325bac9e11b.zip
Fix a number of tdelibs build warnings
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kcrash.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tdecore/kcrash.cpp b/tdecore/kcrash.cpp
index ffefcf97c..429e049ad 100644
--- a/tdecore/kcrash.cpp
+++ b/tdecore/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....