Skip to content

Commit 89cb57e

Browse files
committed
fix memcpy
1 parent aaebdbd commit 89cb57e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/base64/Base64Encoder.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Base64Encoder::Base64StreamBuf::xsputn(const char *s, std::streamsize n)
168168

169169
encoder_.checkSizeLimit(toCopy);
170170

171-
std::memcpy(inputBuffer_ + inputBufferPos_, s, toCopy);
171+
memcpy(inputBuffer_ + inputBufferPos_, s, toCopy);
172172
inputBufferPos_ += toCopy;
173173
s += toCopy;
174174
n -= toCopy;
@@ -180,4 +180,4 @@ Base64Encoder::Base64StreamBuf::xsputn(const char *s, std::streamsize n)
180180

181181
encoder_.encodePending(); // Sync after every append
182182
return written;
183-
}
183+
}

src/base64/Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ libbase64_la_SOURCES = \
1313
Base64Encoder.cc \
1414
Base64Encoder.h
1515

16-
libbase64_la_LIBADD = $(LIBNETTLE_LIBS)
16+
libbase64_la_LIBADD = \
17+
$(top_builddir)/lib/libmiscencoding.la \
18+
$(COMPAT_LIB) \
19+
$(LIBNETTLE_LIBS) \
20+
$(XTRA_LIBS)

0 commit comments

Comments
 (0)