From 0ca5e21eb2d11b8c2d4ee50a29e28745fe5d416c Mon Sep 17 00:00:00 2001 From: zvon Date: Sun, 12 Apr 2020 21:11:14 +0200 Subject: [PATCH] main.cpp: silence warnings --- main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 74616f9..455a675 100644 --- a/main.cpp +++ b/main.cpp @@ -258,17 +258,17 @@ int main _setmode( _fileno( stdout ), _O_U16TEXT ); #else if ( setlocale( LC_ALL, "" ) == NULL ) - error( 1, errno, _( INVALID_LOCALE ).c_str() ); + error( 1, errno, "%s", _( INVALID_LOCALE ).c_str() ); if ( FSLib::exists( "/usr/share/locale/en_US/LC_MESSAGES/tv_rename.mo" ) ) { if ( bindtextdomain( DOMAIN, "/usr/share/locale" ) == NULL ) - error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); + error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() ); if ( textdomain( DOMAIN ) == NULL ) - error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); + error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() ); } else { if ( bindtextdomain( DOMAIN, "./locale" ) == NULL ) - error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); + error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() ); if ( textdomain( DOMAIN ) == NULL ) - error( 1, errno, _( MEM_ALLOC_FAILED ).c_str() ); + error( 1, errno, "%s", _( MEM_ALLOC_FAILED ).c_str() ); } #endif string show{};