summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/ui/ui_lib.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2004-04-08 08:03:11 +0000
committermarkus <markus@openbsd.org>2004-04-08 08:03:11 +0000
commit6278d0304dd1b39e46a509fa3953ad2d0b67fb9d (patch)
treedbc442beb7920ec3d30578fe90f92fb8264f34e9 /lib/libcrypto/ui/ui_lib.c
parent-l can overwrite the path to the leases file, noticed by millert (diff)
downloadwireguard-openbsd-6278d0304dd1b39e46a509fa3953ad2d0b67fb9d.tar.xz
wireguard-openbsd-6278d0304dd1b39e46a509fa3953ad2d0b67fb9d.zip
merge 0.9.7d
Diffstat (limited to 'lib/libcrypto/ui/ui_lib.c')
-rw-r--r--lib/libcrypto/ui/ui_lib.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libcrypto/ui/ui_lib.c b/lib/libcrypto/ui/ui_lib.c
index 33c86d76ef2..dbc9711a2de 100644
--- a/lib/libcrypto/ui/ui_lib.c
+++ b/lib/libcrypto/ui/ui_lib.c
@@ -430,14 +430,14 @@ char *UI_construct_prompt(UI *ui, const char *object_desc,
len += sizeof(prompt3) - 1;
prompt = (char *)OPENSSL_malloc(len + 1);
- strlcpy(prompt, prompt1, len + 1);
- strlcat(prompt, object_desc, len + 1);
+ BUF_strlcpy(prompt, prompt1, len + 1);
+ BUF_strlcat(prompt, object_desc, len + 1);
if (object_name)
{
- strlcat(prompt, prompt2, len + 1);
- strlcat(prompt, object_name, len + 1);
+ BUF_strlcat(prompt, prompt2, len + 1);
+ BUF_strlcat(prompt, object_name, len + 1);
}
- strlcat(prompt, prompt3, len + 1);
+ BUF_strlcat(prompt, prompt3, len + 1);
}
return prompt;
}
@@ -865,8 +865,8 @@ int UI_set_result(UI *ui, UI_STRING *uis, const char *result)
return -1;
}
- strlcpy(uis->result_buf, result,
- uis->_.string_data.result_maxsize + 1);
+ BUF_strlcpy(uis->result_buf, result,
+ uis->_.string_data.result_maxsize + 1);
break;
case UIT_BOOLEAN:
{