forked from osmocom/wireshark
g_assert --> DISSECTOR_ASSERT
svn path=/trunk/; revision=44117
This commit is contained in:
parent
72f8a17e92
commit
c68e50e0e8
|
@ -1092,7 +1092,7 @@ nfs_full_name_snoop(nfs_name_snoop_t *nns, int *len, char **name, char **pos)
|
|||
*pos = *name;
|
||||
|
||||
*pos += g_snprintf(*pos, (*len)+1, "%s", nns->name);
|
||||
g_assert((*pos-*name) <= *len);
|
||||
DISSECTOR_ASSERT((*pos-*name) <= *len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1107,7 +1107,7 @@ nfs_full_name_snoop(nfs_name_snoop_t *nns, int *len, char **name, char **pos)
|
|||
if(*name){
|
||||
/* make sure components are '/' separated */
|
||||
*pos += g_snprintf(*pos, (*len+1) - (gulong)(*pos-*name), "%s%s", ((*pos)[-1]!='/')?"/":"", nns->name);
|
||||
g_assert((*pos-*name) <= *len);
|
||||
DISSECTOR_ASSERT((*pos-*name) <= *len);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue