libdfu: Check for extra args to dfu-tool convert

This commit is contained in:
Richard Hughes 2015-11-16 11:47:47 +00:00
parent e8a6d3d0cb
commit 859fe0b43e

View File

@ -631,7 +631,7 @@ dfu_tool_convert (DfuToolPrivate *priv, gchar **values, GError **error)
g_autoptr(GFile) file_out = NULL;
/* check args */
if (argc < 3) {
if (argc < 3 || argc > 4) {
g_set_error_literal (error,
DFU_ERROR,
DFU_ERROR_INTERNAL,