summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Shwartsman <slavash@FreeBSD.org>2018-12-05 13:28:46 +0000
committerSlava Shwartsman <slavash@FreeBSD.org>2018-12-05 13:28:46 +0000
commit318bd2348c008ea60e8a4124e91e69cdb41a2d46 (patch)
tree2489ad9fe8ca20712e7f27f6907bd6865bd4b793
parenta6578a04e440f79f3b913660221caa9cde3e722c (diff)
downloadsrc-test2-318bd2348c008ea60e8a4124e91e69cdb41a2d46.tar.gz
src-test2-318bd2348c008ea60e8a4124e91e69cdb41a2d46.zip
Notes
-rw-r--r--contrib/ofed/opensm/opensm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ofed/opensm/opensm/main.c b/contrib/ofed/opensm/opensm/main.c
index 8419e6888a98..48a97328061c 100644
--- a/contrib/ofed/opensm/opensm/main.c
+++ b/contrib/ofed/opensm/opensm/main.c
@@ -492,7 +492,7 @@ static ib_net64_t get_port_guid(IN osm_opensm_t * p_osm, uint64_t port_guid)
fflush(stdout);
if (scanf("%u", &choice) <= 0) {
char junk[128];
- if (scanf("%s", junk) <= 0)
+ if (scanf("%127s", junk) <= 0)
printf("\nError: Cannot scan!\n");
} else if (choice == 0)
return 0;