db845c: qcom: tqftpserv: Null terminate firmware_value string am: bc945f0785

Change-Id: I7c496d6ba58d70aecea7db0015a6e179e60a0136
diff --git a/qcom/tqftpserv/translate.c b/qcom/tqftpserv/translate.c
index 15df6d8..63161a0 100644
--- a/qcom/tqftpserv/translate.c
+++ b/qcom/tqftpserv/translate.c
@@ -109,6 +109,7 @@
 		if (n < 0) {
 			continue;
 		}
+		firmware_value[n] = '\0';
 
 		if (strlen(FIRMWARE_BASE) + strlen(firmware_value) + 1 +
 		    strlen(file) + 1 > sizeof(path))