diff options
Diffstat (limited to 'src/os_riscos.c')
-rw-r--r-- | src/os_riscos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_riscos.c b/src/os_riscos.c index 289495008..39a03cc36 100644 --- a/src/os_riscos.c +++ b/src/os_riscos.c @@ -523,7 +523,7 @@ mch_get_host_name(s, len) if (xswi(OS_ReadVarVal, "Machine$Name", s, len, 0, 3) & v_flag) { /* Variable does not exist (normal operation) */ - STRNCPY(s, "(unknown)", len); + vim_strncpy(s, "(unknown)", len - 1); } } |