diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-10-11 14:44:39 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-10-30 10:39:11 +0100 |
commit | eee623ff6463ad6ee837b43421a69965913d32e2 (patch) | |
tree | f41518e4e9c0c9904bbe8c8cebe7987bb8bda8cf /src/libopts/compat/pathfind.c | |
parent | ce8557344cbe9ac6f6326700e11673239a36129b (diff) | |
download | gnutls-eee623ff6463ad6ee837b43421a69965913d32e2.tar.gz |
updated to libopts 5.18.16
This fixes compilation in Fedora 30 which ships with this
version of autogen.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src/libopts/compat/pathfind.c')
-rw-r--r-- | src/libopts/compat/pathfind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libopts/compat/pathfind.c b/src/libopts/compat/pathfind.c index 5c477caf07..e188b72813 100644 --- a/src/libopts/compat/pathfind.c +++ b/src/libopts/compat/pathfind.c @@ -211,7 +211,7 @@ canonicalize_pathname( char *path ) (result[i + 2] == '/' || !result[i + 2])) { while (--start > -1 && result[start] != '/') ; - strcpy( result + start + 1, result + i + 2 ); + memmove( result + start + 1, result + i + 2, strlen(result + i + 2) + 1 ); i = (start < 0) ? 0 : start; continue; } |