Changes between Version 1 and Version 2 of Ticket #1024


Ignore:
Timestamp:
Jan 13, 2010 11:26:41 AM (10 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1024 – Description

    v1 v2  
    11PJSIP 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. 
    22 
    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. 
     3It 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. 
    44 
    55We 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.