Changes between Version 1 and Version 2 of Ticket #1024
- Timestamp:
- Jan 13, 2010 11:26:41 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1024 – Description
v1 v2 1 1 PJSIP assumes that an {{{snprintf}}} of "%.*s" will nicely print nothing if the supplied arguments are 0 and NULL. Unfortunately some Libc library (such as uClibc) would print "(null)" instead. 2 2 3 It has been suggested that PJSIP should be changed so that it uses empty string ("") instead of NULL when the string length is zero, but this would require modifications in too many places. And anyway I feel that this is not the right solution.3 It has been suggested that PJSIP should be changed so that it uses empty string ("") instead of NULL when the string length is zero, but this would require modifications in too many places. And I feel that this is not the right solution anyway since I believe we comply with ANSI C. 4 4 5 5 We suggest that uClibc should be fixed instead. The offending lines are in {{{libc/stdio/_vprintf.c}}}, just search for "(null)" and replace it with an empty string.