mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
common/iobuf.c: Fix filter type for iobuf_temp_with_content.
* common/iobuf.c (iobuf_temp_with_content): Set the filter type to IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that write into a dynamic buffer. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
parent
75fd86bbd1
commit
fa9fda23c2
@ -1234,7 +1234,7 @@ iobuf_temp_with_content (const char *buffer, size_t length)
|
||||
iobuf_t a;
|
||||
int i;
|
||||
|
||||
a = iobuf_alloc (IOBUF_TEMP, length);
|
||||
a = iobuf_alloc (IOBUF_INPUT, length);
|
||||
/* memcpy (a->d.buf, buffer, length); */
|
||||
for (i=0; i < length; i++)
|
||||
a->d.buf[i] = buffer[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user