From 986d928ce2a561b04fda7730de6a94f9b1e703d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 18 Sep 2000 14:35:34 +0000 Subject: See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner Koch --- util/strgutil.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util/strgutil.c') diff --git a/util/strgutil.c b/util/strgutil.c index a8abf7ba8..89722f8e4 100644 --- a/util/strgutil.c +++ b/util/strgutil.c @@ -389,7 +389,8 @@ utf8_to_native( const char *string, size_t length ) case 0 : n++; if( p ) *p++ = '0'; break; default: n += 3; sprintf( p, "x%02x", *s ); - p += 3; + if ( p ) + p += 3; break; } } @@ -496,3 +497,7 @@ utf8_to_native( const char *string, size_t length ) } + + + + -- cgit