Changeset 851:536e8d11edee in freeDiameter for libfdproto/portability.c
- Timestamp:
- Oct 22, 2012, 12:26:03 AM (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/portability.c
r849 r851 52 52 { 53 53 char * output; 54 size_t outlen = strnlen (str, len); 54 size_t outlen; 55 56 output = memchr(str, 0, len); 57 if (output == NULL) { 58 outlen = len; 59 } else { 60 outlen = term - str; 61 } 62 55 63 CHECK_MALLOC_DO( output = malloc (outlen + 1), return NULL ); 56 64
Note: See TracChangeset
for help on using the changeset viewer.