len = (size > 0) ? size : 0;
- if ((ptr = ensure_contiguous(tvb, offset, size)) == NULL) {
- len = tvb_length_remaining(tvb, offset);
- ptr = ensure_contiguous(tvb, offset, len);
- }
-
+ ptr = ensure_contiguous(tvb, offset, size);
return format_text(ptr, len);
}
len = (size > 0) ? size : 0;
- if ((ptr = ensure_contiguous(tvb, offset, size)) == NULL) {
-
- len = tvb_length_remaining(tvb, offset);
- ptr = ensure_contiguous(tvb, offset, len);
-
- }
-
+ ptr = ensure_contiguous(tvb, offset, size);
return format_text_wsp(ptr, len);
}
len = (size > 0) ? size : 0;
- if ((ptr = ensure_contiguous(tvb, offset, size)) == NULL) {
-
- len = tvb_length_remaining(tvb, offset);
- ptr = ensure_contiguous(tvb, offset, len);
-
- }
-
+ ptr = ensure_contiguous(tvb, offset, size);
for (p = ptr, stringlen = 0; stringlen < len && *p != '\0'; p++, stringlen++)
;
return format_text(ptr, stringlen);
len = (size > 0) ? size : 0;
- if ((ptr = ensure_contiguous(tvb, offset, size)) == NULL) {
-
- len = tvb_length_remaining(tvb, offset);
- ptr = ensure_contiguous(tvb, offset, len);
-
- }
-
+ ptr = ensure_contiguous(tvb, offset, size);
for (p = ptr, stringlen = 0; stringlen < len && *p != '\0'; p++, stringlen++)
;
return format_text_wsp(ptr, stringlen);