cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()

This saves us the extra sizeof().

Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
changes/17/12917/1
Harald Welte 4 years ago
parent db2336a9f5
commit e9113f21f6
  1. 2
      src/mncc.c

@ -790,7 +790,7 @@ int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call)
mncc.fields |= MNCC_F_CALLED;
mncc.called.plan = GSM48_NPI_ISDN_E164;
mncc.called.type = GSM48_TON_UNKNOWN;
osmo_strlcpy(mncc.called.number, call->dest, sizeof(mncc.called.number));
OSMO_STRLCPY_ARRAY(mncc.called.number, call->dest);
}
/*

Loading…
Cancel
Save