Commit fcc2eec8 authored by Ziye Yang's avatar Ziye Yang Committed by Daniel Verkamp
Browse files

nvme_manage: Rely on fgets to NULL terminate string



fgets guarantees that strings returned are NULL terminated,
so delete logic that attempts to insert a NULL terminator.

Change-Id: Ibeadcda9af431091b04daff41596d5738419b43f
Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
parent ef918417
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -786,7 +786,6 @@ update_firmware_image(void)
		while (getchar() != '\n');
		return;
	}
	path[strlen(path) - 1] = '\0';

	fd = open(path, O_RDONLY);
	if (fd < 0) {