Skip to content

Commit 23ed9bf

Browse files
committed
Fix wrong variable to add null terminator
Change-Id: I8f99658d599400113c7c215a401aea01da28aec9
1 parent 9563d40 commit 23ed9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qtest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ int main(int argc, char *argv[])
14011401
}
14021402
case 'l':
14031403
strncpy(lbuf, optarg, BUFSIZE);
1404-
buf[BUFSIZE - 1] = '\0';
1404+
lbuf[BUFSIZE - 1] = '\0';
14051405
logfile_name = lbuf;
14061406
break;
14071407
default:

0 commit comments

Comments
 (0)