X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/fc8e02dc2074ce73276afc6f48919b9ecb32a409..843bc850b2b7732c8969b9ad25e922fb09eaf4b3:/uip/whatnowsbr.c diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 9b71876b..7f28f34a 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -702,7 +702,7 @@ editfile (char **ed, char **arg, char *file, int use, struct msgs *mp, if (altmsg) { if (mp == NULL || *altmsg == '/' || cwd == NULL) - strncpy (altpath, altmsg, sizeof(altpath)); + strncpy (altpath, altmsg, sizeof(altpath) - 1); else snprintf (altpath, sizeof(altpath), "%s/%s", mp->foldpath, altmsg); if (cwd == NULL)