aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-09-04 09:47:51 +1000
committerGravatar axel <axel@liljencrantz.se>2006-09-04 09:47:51 +1000
commit3bef5689552963144beaa782a4899cea04994b4d (patch)
treebb043e9c15dd8fc8d94064c35ce2b16f654266a7 /common.c
parent9a7be6db080613441df98d29b2225aa731ba5a45 (diff)
Fix nagging warning message
darcs-hash:20060903234751-ac50b-c5d7f026323b5cab450e1770be572dcdf3ecc904.gz
Diffstat (limited to 'common.c')
-rw-r--r--common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.c b/common.c
index c80aa1ca..1e68908c 100644
--- a/common.c
+++ b/common.c
@@ -296,7 +296,10 @@ char *wcs2str_internal( const wchar_t *in, char *out )
while( in[in_pos] )
{
- if( ( in[in_pos] >= ENCODE_DIRECT_BASE) &&
+ if( in[in_pos] == INTERNAL_SEPARATOR )
+ {
+ }
+ else if( ( in[in_pos] >= ENCODE_DIRECT_BASE) &&
( in[in_pos] < ENCODE_DIRECT_BASE+256) )
{
out[out_pos++] = in[in_pos]- ENCODE_DIRECT_BASE;
@@ -307,7 +310,7 @@ char *wcs2str_internal( const wchar_t *in, char *out )
if( res == (size_t)(-1) )
{
- debug( 1, L"Wide character has no narrow representation" );
+ debug( 1, L"Wide character %d has no narrow representation", in[in_pos] );
memset( &state, 0, sizeof(state) );
}
else