summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index dcebfc0..7531a7d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -423,13 +423,14 @@ xmlSecTransformInputURIOpen(xmlSecTransformPtr transform, const xmlChar *uri) {
char buf[ERR_BUF_SIZE];
if((ctx->clbks == NULL) || (ctx->clbksCtx == NULL)) {
+ strerror_r(errno, buf, sizeof(buf));
xmlSecError(XMLSEC_ERRORS_HERE,
xmlSecErrorsSafeString(xmlSecTransformGetName(transform)),
"opencallback",
XMLSEC_ERRORS_R_IO_FAILED,
"uri=%s;error=%s",
xmlSecErrorsSafeString(uri),
- strerror_r(errno, buf, sizeof(buf)));
+ buf);
return(-1);
}
@@ -523,11 +524,12 @@ xmlSecTransformInputURIPopBin(xmlSecTransformPtr transform, xmlSecByte* data,
ret = (ctx->clbks->readcallback)(ctx->clbksCtx, (char*)data, (int)maxDataSize);
if(ret < 0) {
char buf[ERR_BUF_SIZE];
+ strerror_r(errno, buf, sizeof(buf));
xmlSecError(XMLSEC_ERRORS_HERE,
xmlSecErrorsSafeString(xmlSecTransformGetName(transform)),
"readcallback",
XMLSEC_ERRORS_R_IO_FAILED,
- "error=%s", strerror_r(errno, buf, sizeof(buf)));
+ "error=%s", buf);
return(-1);
}
(*dataSize) = ret;