From bbdc326f15894293c7730a73151c8ad02b58d4e7 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 8 May 2003 05:10:44 +0000 Subject: Another attempt at undoing my bogus patch 1.55.2.19 (This used to be commit 05a684b3be1525aad3589ded9e59c3f012b5ef20) --- source3/lib/charcnv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 102b77592b..febd7d5496 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -420,6 +420,8 @@ size_t pull_ascii(char *dest, const void *src, size_t dest_len, size_t src_len, if (dest_len) dest[MIN(ret, dest_len-1)] = 0; + else + dest[0] = 0; return src_len; } -- cgit