summaryrefslogtreecommitdiffstats
path: root/common/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/convert.c')
-rw-r--r--common/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/convert.c b/common/convert.c
index d3e8b642e..aa3a3a809 100644
--- a/common/convert.c
+++ b/common/convert.c
@@ -115,7 +115,7 @@ do_bin2hex (const void *buffer, size_t length, char *stringbuf, int with_colon)
size_t nbytes = n * length + 1;
if (length && (nbytes-1) / n != length)
{
- errno = ENOMEM;
+ gpg_err_set_errno (ENOMEM);
return NULL;
}
stringbuf = xtrymalloc (nbytes);
@@ -232,7 +232,7 @@ hex2str_alloc (const char *hexstring, size_t *r_count)
{
if (r_count)
*r_count = 0;
- errno = EINVAL;
+ gpg_err_set_errno (EINVAL);
return NULL;
}
if (r_count)