mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 13:16:58 +02:00
Patches from Yocto: https://git.openembedded.org/meta-openembedded/plain/meta-oe/recipes-support/libb64/libb64/ And upstream master
57 lines
1.6 KiB
Diff
57 lines
1.6 KiB
Diff
From 9ec49389f56816d7ac2331296c03d147531a421a Mon Sep 17 00:00:00 2001
|
|
From: Jakub Wilk <jwilk@debian.org>
|
|
Date: Sat, 27 Mar 2021 22:01:13 -0700
|
|
Subject: [PATCH] use BUFSIZ as buffer size
|
|
|
|
Bug: http://sourceforge.net/tracker/?func=detail&atid=785907&aid=3591336&group_id=152942
|
|
|
|
Upstream-Status: Pending
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
---
|
|
include/b64/decode.h | 3 ++-
|
|
include/b64/encode.h | 3 ++-
|
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/b64/decode.h b/include/b64/decode.h
|
|
index b2362e5..8db1d09 100644
|
|
--- a/include/b64/decode.h
|
|
+++ b/include/b64/decode.h
|
|
@@ -8,6 +8,7 @@ For details, see http://sourceforge.net/projects/libb64
|
|
#ifndef BASE64_DECODE_H
|
|
#define BASE64_DECODE_H
|
|
|
|
+#include <cstdio>
|
|
#include <iostream>
|
|
|
|
namespace base64
|
|
@@ -22,7 +23,7 @@ namespace base64
|
|
base64_decodestate _state;
|
|
int _buffersize;
|
|
|
|
- decoder(int buffersize_in = BUFFERSIZE)
|
|
+ decoder(int buffersize_in = BUFSIZ)
|
|
: _buffersize(buffersize_in)
|
|
{
|
|
base64_init_decodestate(&_state);
|
|
diff --git a/include/b64/encode.h b/include/b64/encode.h
|
|
index c1a5f88..644e4dd 100644
|
|
--- a/include/b64/encode.h
|
|
+++ b/include/b64/encode.h
|
|
@@ -8,6 +8,7 @@ For details, see http://sourceforge.net/projects/libb64
|
|
#ifndef BASE64_ENCODE_H
|
|
#define BASE64_ENCODE_H
|
|
|
|
+#include <cstdio>
|
|
#include <iostream>
|
|
|
|
namespace base64
|
|
@@ -22,7 +23,7 @@ namespace base64
|
|
base64_encodestate _state;
|
|
int _buffersize;
|
|
|
|
- encoder(int buffersize_in = BUFFERSIZE)
|
|
+ encoder(int buffersize_in = BUFSIZ)
|
|
: _buffersize(buffersize_in)
|
|
{
|
|
base64_init_encodestate(&_state);
|