Skip to content

Commit

Permalink
opt: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jan 5, 2025
1 parent 896766f commit 43a782c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/iconv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ Iconv::Iconv( char const * from ):
state( iconv_open( Text::utf8, from ) )
{
if ( state == (iconv_t)-1 ) {
char buffer[ 256 ];
strerror_s( buffer, sizeof( buffer ), errno );
throw exCantInit( buffer );
throw exCantInit( strerror( errno ) );
}
}

Expand Down

0 comments on commit 43a782c

Please sign in to comment.