r25238: Make the error returns from the string functions
authorJeremy Allison <jra@samba.org>
Wed, 19 Sep 2007 17:52:06 +0000 (17:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:53 +0000 (12:30 -0500)
commitabedd967869ade9a43c3a8e1b889c60d4aca81cf
treeec5db7358620f82e08b0b7e60a6d025ed7ed4e21
parent5566cf01e827edf60c0235a661d95dd376210108
r25238: Make the error returns from the string functions
always consistent. Return -1 on error, and ensure
we check for this. In cases where the dest is already
specified and we've been asked to terminate with a
null, ensure we always do so even on error.
Jeremy.
source/lib/charcnv.c
source/nmbd/nmbd_processlogon.c