From: nasm-bot f. C. G. <gor...@gm...> - 2018-02-26 18:17:46
|
Commit-ID: fb9e00a1c3c3ec89d385175baa6e66b15318bda8 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=fb9e00a1c3c3ec89d385175baa6e66b15318bda8 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 25 Feb 2018 16:12:34 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 25 Feb 2018 16:12:34 +0300 output: outobj -- Fix typo in obj_init In 51b453b0970a1d66c3f6533ed940cb9838ba2b18 occasionally used wrong operand for sizeof. Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outobj.c b/output/outobj.c index 054963b..bbf9015 100644 --- a/output/outobj.c +++ b/output/outobj.c @@ -640,7 +640,7 @@ static enum directive_result obj_directive(enum directive, char *, int); static void obj_init(void) { - strlcpy(obj_infile, inname, sizeof(inname)); + strlcpy(obj_infile, inname, sizeof(obj_infile)); first_seg = seg_alloc(); any_segs = false; fpubhead = NULL; |