cec: fixed compiler warning in cec-client
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 26 Mar 2012 00:17:10 +0000 (02:17 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 26 Mar 2012 00:17:10 +0000 (02:17 +0200)
src/testclient/main.cpp

index d4c0ed9e7a1e6406c7d98799a84101f39554fc1f..1e1eea3b3560a149762c94c8abf8d09e04500ecb 100644 (file)
@@ -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;
         }