Skip to content

Commit c844814

Browse files
sndk: fixed build failure
Signed-off-by: jeff-lien-sndk <[email protected]>
1 parent 761cdf5 commit c844814

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/sandisk/sandisk-nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ static int sndk_vs_internal_fw_log(int argc, char **argv,
539539
if (bin_ext) {
540540
*bin_ext = '\0';
541541
}
542-
snprintf(tar_file, PATH_MAX, "%s.tar", f);
542+
snprintf(tar_file, PATH_MAX-5, "%s.tar", f);
543543
} else {
544544
snprintf(tar_file, PATH_MAX, "%s", f);
545545
}

0 commit comments

Comments
 (0)