Commit b0bcff0d authored by Roberto Louro Magueta's avatar Roberto Louro Magueta

Fix build warnings in phy simulators

parent a574c47e
...@@ -299,7 +299,7 @@ int main(int argc, char **argv) ...@@ -299,7 +299,7 @@ int main(int argc, char **argv)
break; break;
case 'X': case 'X':
strncpy(gNBthreads, optarg, sizeof(gNBthreads)); strncpy(gNBthreads, optarg, sizeof(gNBthreads)-1);
gNBthreads[sizeof(gNBthreads)-1]=0; gNBthreads[sizeof(gNBthreads)-1]=0;
break; break;
......
...@@ -670,7 +670,7 @@ int main(int argc, char **argv) ...@@ -670,7 +670,7 @@ int main(int argc, char **argv)
break; break;
case 'X': case 'X':
strncpy(gNBthreads, optarg, sizeof(gNBthreads)); strncpy(gNBthreads, optarg, sizeof(gNBthreads)-1);
gNBthreads[sizeof(gNBthreads)-1]=0; gNBthreads[sizeof(gNBthreads)-1]=0;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment