Mercurial > libpst
diff src/deltasearch.cpp @ 73:3cb02cb1e6cd stable-0-6-10
Patch from Robert Simpson to fix doubly-linked list in the cache_ptr code, and allow arrays of unicode strings (without converting them).
More changes for Fedora packaging (#434727)
Fixes for const correctness.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 29 May 2008 18:51:02 -0700 |
parents | b2a7f2e0926a |
children | 0f1492b7fe8b |
line wrap: on
line diff
--- a/src/deltasearch.cpp Fri May 16 09:06:17 2008 -0700 +++ b/src/deltasearch.cpp Thu May 29 18:51:02 2008 -0700 @@ -55,14 +55,14 @@ struct stat st; fstat(fd, &st); off_t size = st.st_size; - unsigned char buf[size]; + char buf[size]; size_t s = read(fd, buf, size); pst_debug_hexdumper(stdout, buf, s, 16, 0); cout << endl; cout << endl; cout << " dump decrypted data " << endl; for (off_t i=0; i<size; i++) { - buf[i] = comp_enc[buf[i]]; + buf[i] = comp_enc[(unsigned char)buf[i]]; } pst_debug_hexdumper(stdout, buf, s, 16, 0); close(fd);