From: Lars Op den Kamp Date: Mon, 26 Mar 2012 00:17:10 +0000 (+0200) Subject: cec: fixed compiler warning in cec-client X-Git-Tag: upstream/2.2.0~1^2~31^2~48 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=71d50d2065b5f568201c356e287939f3418df78e;p=deb_libcec.git cec: fixed compiler warning in cec-client --- diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index d4c0ed9..1e1eea3 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -1041,7 +1041,7 @@ bool ProcessCommandLineArguments(int argc, char *argv[]) { if (argc >= iArgPtr + 2) { - snprintf(g_config.strDeviceName, 13, argv[iArgPtr + 1]); + snprintf(g_config.strDeviceName, 13, "%s", argv[iArgPtr + 1]); cout << "using osd name " << g_config.strDeviceName << endl; ++iArgPtr; }