itemstro_set_strn fxed.
FossilOrigin-Name: 0d3215435efe23255dd6979b2ca074f6f98a92bdf825dafc05d36874ebaf35cb
This commit is contained in:
@ -6,22 +6,9 @@
|
||||
|
||||
int cw_in_wtp_name(struct conn *conn,struct cw_action * a,uint8_t *data,int len)
|
||||
{
|
||||
int i;
|
||||
|
||||
printf("WTP Name: ");
|
||||
for (i=0; i<len; i++) {
|
||||
printf("%c",data[i]);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
if (len > 512){
|
||||
cw_dbg(DBG_CW_RFC, "WTP Name too long, must not exceed 512, len is %d",len);
|
||||
}
|
||||
|
||||
|
||||
|
||||
cw_itemstore_set_strn(conn->itemstore,CW_ITEM_WTP_NAME,(const char*)data,len);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user