diff options
Diffstat (limited to 'amiga/misc.c')
-rwxr-xr-x | amiga/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/amiga/misc.c b/amiga/misc.c index e2f566f94..bfb281718 100755 --- a/amiga/misc.c +++ b/amiga/misc.c @@ -115,7 +115,7 @@ char *path_to_url(const char *path) DevNameFromLock(lock, newpath, sizeof newpath, DN_FULLPATH); UnLock(lock); } - else strncpy(newpath, path, sizeof newpath); + else strlcpy(newpath, path, sizeof newpath); r = malloc(strlen(newpath) + SLEN("file:///") + 1); |