From 353b7dde331a30ccad159a5948376fb011cd781c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Nov 2015 09:26:42 +0100 Subject: -Werror,-Wstring-plus-int Change-Id: Ie16ca73ac3d622d00583ef454780f9a01b32d436 --- odk/source/unoapploader/win/unoapploader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odk/source') diff --git a/odk/source/unoapploader/win/unoapploader.c b/odk/source/unoapploader/win/unoapploader.c index 7579aa4d3cf0..9b2c1d335895 100644 --- a/odk/source/unoapploader/win/unoapploader.c +++ b/odk/source/unoapploader/win/unoapploader.c @@ -112,8 +112,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, } wcscpy( cmd + pathsize, - (L"\\unoinfo.exe\" c++" + - (pathsize == 1 || cmd[pathsize - 1] != L'\\' ? 0 : 1))); + &L"\\unoinfo.exe\" c++"[ + pathsize == 1 || cmd[pathsize - 1] != L'\\' ? 0 : 1]); sec.nLength = sizeof (SECURITY_ATTRIBUTES); sec.lpSecurityDescriptor = NULL; sec.bInheritHandle = TRUE; -- cgit v1.2.3