Set bitrate for encoder
[platform/core/api/mediacodec.git] / test / media_codec_test.c
index b02cd3e..9c77527 100644 (file)
@@ -2246,7 +2246,7 @@ void interpret(char *cmd)
                int len;
                if (cnt == 0) {
                        len = strlen(cmd);
-                       strncpy(app->filepath, cmd, len + 1);
+                       strncpy(app->filepath, cmd, sizeof(app->filepath) - 1);
                        g_print("%s, %d\n", app->filepath, len);
                        cnt++;
                } else if (cnt == 1) {