if( start[i] == ';' )
{
start[i] = '\0';
- strncpy( uf->name, start, sizeof(uf->name) );
+ vg_strncpy( start, uf->name, sizeof(uf->name),
+ k_strncpy_always_add_null );
}
if( start[i] == '[' )
{
start[i] = '\0';
- strncpy( uf->name, start, sizeof(uf->name) );
+ vg_strncpy( start, uf->name, sizeof(uf->name),
+ k_strncpy_always_add_null );
uf->array = 1;
}
if( !type_set )
{
- strncpy( uf->type, start, sizeof(uf->type) );
+ vg_strncpy( start, uf->type, sizeof(uf->type),
+ k_strncpy_always_add_null );
type_set = 1;
}
start = start+i+1;