More Cisco stuff added
FossilOrigin-Name: e68d9b046b5b19112b8c37d63642202ba74c57d927cb4519d0da57e0b0e11698
This commit is contained in:
@ -15,7 +15,8 @@ int cw_ktv_write_struct(mavl_t ktv, const cw_KTVStruct_t * stru, const char *pke
|
||||
if (stru[i].position!=-1){
|
||||
pos=stru[i].position;
|
||||
}
|
||||
memset(dst+pos,0,stru[i].len);
|
||||
if (stru[i].len!=-1)
|
||||
memset(dst+pos,0,stru[i].len);
|
||||
|
||||
sprintf(key,"%s/%s",pkey,stru[i].key);
|
||||
result = cw_ktv_get(ktv,key,stru[i].type);
|
||||
@ -27,8 +28,10 @@ int cw_ktv_write_struct(mavl_t ktv, const cw_KTVStruct_t * stru, const char *pke
|
||||
else{
|
||||
result->type->put(result,dst+pos);
|
||||
}
|
||||
|
||||
pos+=stru[i].len;
|
||||
if (stru[i].len!=-1)
|
||||
pos+=stru[i].len;
|
||||
else
|
||||
pos+=result->type->len(result);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user