[Pidgin] #4515: xmlnode_to_formatted_str returns incorrect length
Pidgin
trac at pidgin.im
Sat Dec 29 12:39:49 EST 2007
#4515: xmlnode_to_formatted_str returns incorrect length
------------------------+---------------------------------------------------
Reporter: QuLogic | Owner:
Type: patch | Status: new
Priority: minor | Milestone:
Component: libpurple | Version: 2.3.1
Resolution: | Keywords: xmlnode,length,formatted
Pending: 0 |
------------------------+---------------------------------------------------
Comment (by sadrul):
For string literals, 'sizeof(string) = strlen(string) + 1', because sizeof
includes the null-byte at the end. I have committed with 'sizeof - 1'.
--
Ticket URL: <http://developer.pidgin.im/ticket/4515#comment:2>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list