util: fixed place where we could look one byte past end of string
authorAndrew Tridgell <tridge@samba.org>
Thu, 22 Oct 2009 00:03:27 +0000 (11:03 +1100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:39:45 +0000 (11:39 +0100)
commit14f030efa1343d88da4c1aba22b13d70411d3c8c
tree8351f8aa419b8a86b99b3f204a9f2694404ce441
parent8a549a9b30fe60a10991baa548632ecf98e34b82
util: fixed place where we could look one byte past end of string

We need to check the length before the value
(cherry picked from commit dcdec1663c1bba90ebe59abed0d0f70772f0eb64)
lib/util/charset/util_unistr.c