Commit 639fc5c5 authored by Robert Ricci's avatar Robert Ricci

Oops, off-by-one error in argv handling

parent f002ead5
...@@ -106,7 +106,7 @@ int main(int argc, char **argv) { ...@@ -106,7 +106,7 @@ int main(int argc, char **argv) {
*/ */
fprinttimestamp(stdout); fprinttimestamp(stdout);
printf(" iperfd starting, called as: "); printf(" iperfd starting, called as: ");
for (int i = 0; i<= argc; i++) { for (int i = 0; i < argc; i++) {
printf(argv[i]); printf(argv[i]);
if (i != argc) { if (i != argc) {
printf(" "); printf(" ");
......
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