Mercurial > libpst
comparison src/deltasearch.cpp @ 46:b2a7f2e0926a
more fixes for 64 bit format
author | carl |
---|---|
date | Sat, 12 Jan 2008 15:20:53 -0800 |
parents | f6db1f060a95 |
children | 3cb02cb1e6cd |
comparison
equal
deleted
inserted
replaced
45:b961bcdadd0e | 46:b2a7f2e0926a |
---|---|
55 struct stat st; | 55 struct stat st; |
56 fstat(fd, &st); | 56 fstat(fd, &st); |
57 off_t size = st.st_size; | 57 off_t size = st.st_size; |
58 unsigned char buf[size]; | 58 unsigned char buf[size]; |
59 size_t s = read(fd, buf, size); | 59 size_t s = read(fd, buf, size); |
60 _pst_debug_hexdump(stdout, buf, s, 16, 0); | 60 pst_debug_hexdumper(stdout, buf, s, 16, 0); |
61 cout << endl; | 61 cout << endl; |
62 cout << endl; | 62 cout << endl; |
63 cout << " dump decrypted data " << endl; | 63 cout << " dump decrypted data " << endl; |
64 for (off_t i=0; i<size; i++) { | 64 for (off_t i=0; i<size; i++) { |
65 buf[i] = comp_enc[buf[i]]; | 65 buf[i] = comp_enc[buf[i]]; |
66 } | 66 } |
67 _pst_debug_hexdump(stdout, buf, s, 16, 0); | 67 pst_debug_hexdumper(stdout, buf, s, 16, 0); |
68 close(fd); | 68 close(fd); |
69 } | 69 } |
70 return 0; | 70 return 0; |
71 } | 71 } |