mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 10:50:43 +00:00
build: fix build issue with latest gcc
Fix build issues with gcc 9.1 version Tracked-On: #3121 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -85,7 +85,8 @@ int main(int argc, char *argv[])
|
||||
NULL)) != -1) {
|
||||
switch (op) {
|
||||
case 'c':
|
||||
strncpy(cfg, optarg, PATH_MAX);
|
||||
strncpy(cfg, optarg, PATH_MAX - 1);
|
||||
cfg[PATH_MAX - 1] = 0;
|
||||
break;
|
||||
case 'h':
|
||||
usage();
|
||||
|
Reference in New Issue
Block a user