Narthex

Modular dictionary generator
git clone git@git.mcdim.xyz:/var/www/git/Narthex.git
Log | Files | Refs | README | LICENSE

commit 0fca66bafe2f21f77070432e7db70d56262eb367
parent aa0342c530f644e59e7990312f01e938866b9a44
Author: Michael Constantine Dimopoulos <mk@mcdim.xyz>
Date:   Sat, 26 Feb 2022 12:03:06 +0000

Fixed ncom bug

Diffstat:
Mcom/ncom.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/com/ncom.c b/com/ncom.c @@ -139,7 +139,7 @@ main(int argc, char *argv[]) opterr = 0; - while ((c = getopt(argc, argv, "d:umnvbh")) != -1 ) + while ((c = getopt(argc, argv, "d:nvbh")) != -1 ) switch (c) { case 'v': die(VERSION); @@ -161,7 +161,7 @@ main(int argc, char *argv[]) } if (optind < argc) { - strcpy(filename, argv[optind]); + strncpy(filename, argv[optind], 256); filename_given = 1; }