diff options
author | Justus Winter <[email protected]> | 2016-03-31 11:33:03 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-06-17 09:38:00 +0000 |
commit | 8e5ad9aabdd57457f76078924d33acb94b75a877 (patch) | |
tree | 04c6984da2be173b9b8f119d2d7c7764691f47b8 /tests/gpgscm/scheme.h | |
parent | tests/gpgscm: Make exception value available. (diff) | |
download | gnupg-8e5ad9aabdd57457f76078924d33acb94b75a877.tar.gz gnupg-8e5ad9aabdd57457f76078924d33acb94b75a877.zip |
tests/gpgscm: Dynamically allocate string buffer.
* tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
* tests/gpgscm/scheme.c (expand_strbuff): New function.
(putcharacter): Adapt length test.
(readstrexp): Expand buffer if necessary.
(scheme_init_custom_alloc): Initialize buffer.
(scheme_deinit): Free buffer.
Patch from Thomas Munro,
https://sourceforge.net/p/tinyscheme/patches/11/
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.h')
0 files changed, 0 insertions, 0 deletions