diff options
author | 2014-11-26 18:17:16 +0000 | |
---|---|---|
committer | 2014-11-26 18:17:16 +0000 | |
commit | 440ee05a8dcf5b229b941c22db7164617664fea7 (patch) | |
tree | 6522176a325d7c85777526f223f9bd796c9d51a1 | |
parent | garbage collect .Tn (diff) | |
download | wireguard-openbsd-440ee05a8dcf5b229b941c22db7164617664fea7.tar.xz wireguard-openbsd-440ee05a8dcf5b229b941c22db7164617664fea7.zip |
Use perl's my_strlcat in DynaLoader
OK millert@
-rw-r--r-- | gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs b/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs index cb513ab9d36..96d30dea243 100644 --- a/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs +++ b/gnu/usr.bin/perl/ext/DynaLoader/dl_dlopen.xs @@ -170,8 +170,8 @@ dl_load_file(filename, flags=0) char pathbuf[PATH_MAX + 2]; if (*filename != '/' && strchr(filename, '/')) { if (getcwd(pathbuf, PATH_MAX - strlen(filename))) { - strcat(pathbuf, "/"); - strcat(pathbuf, filename); + my_strlcat(pathbuf, "/", sizeof(pathbuf)); + my_strlcat(pathbuf, filename, sizeof(pathbuf)); filename = pathbuf; } } |