Message ID | 1471541538-20270-23-git-send-email-jarod@redhat.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/src/multicast_resources.c b/src/multicast_resources.c index 3a8edba..f5e4bea 100755 --- a/src/multicast_resources.c +++ b/src/multicast_resources.c @@ -160,7 +160,7 @@ void set_multicast_gid(struct mcast_parameters *params,uint32_t qp_num,int is_cl } pstr += term - pstr + 1; - strcpy(tmp, pstr); + strncpy(tmp, pstr, sizeof(tmp) - 1); mcg_gid[15] = (unsigned char)strtoll(tmp, NULL, 0); }
CC: Gil Rockah <gilr@mellanox.com> Signed-off-by: Jarod Wilson <jarod@redhat.com> --- src/multicast_resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)