g_assert --> DISSECTOR_ASSERT

svn path=/trunk/; revision=44117
This commit is contained in:
Bill Meier 2012-07-29 20:19:38 +00:00
parent 72f8a17e92
commit c68e50e0e8
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}