aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 16:12:34 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 16:12:34 +0300
commitfb9e00a1c3c3ec89d385175baa6e66b15318bda8 (patch)
tree180462027298fdcc19cec09a4cae04d23e3e4c36
parent51b453b0970a1d66c3f6533ed940cb9838ba2b18 (diff)
downloadnasm-fb9e00a1c3c3ec89d385175baa6e66b15318bda8.tar.gz
nasm-fb9e00a1c3c3ec89d385175baa6e66b15318bda8.tar.xz
nasm-fb9e00a1c3c3ec89d385175baa6e66b15318bda8.zip
output: outobj -- Fix typo in obj_init
In 51b453b0970a1d66c3f6533ed940cb9838ba2b18 occasionally used wrong operand for sizeof. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--output/outobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outobj.c b/output/outobj.c
index 054963bb..bbf90157 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;