cpbuffer extract(): use integer arithmetic instead of char pointer.
authorDavin McCall <davmac@davmac.org>
Tue, 18 Sep 2018 22:31:37 +0000 (23:31 +0100)
committerDavin McCall <davmac@davmac.org>
Thu, 20 Sep 2018 08:43:18 +0000 (09:43 +0100)
commit25428a52dbfa0edbd3ddc34ed78a51d6efc1e928
treeefa0c1698ad9a9f6ff629a17077a5ab72d77a5ab
parentfcc01d7979baf282f87abff0304c9298e16ba1df
cpbuffer extract(): use integer arithmetic instead of char pointer.

The method is designed to extract data to an arbitrary type, and while
char * should probably be safe to do that with, conversion to char * is
not specified in C++ as it is in C, and compilers are becoming more
aggressive.
src/includes/cpbuffer.h