qcom: pd-mapper: Null terminate firmware_value string am: 4f619fba65 am: c314573a54 am: 521fe5a2c7

Change-Id: I4349a5da6bb85e80500602d3bcc3fa96bd411308
diff --git a/qcom/pd-mapper/pd-mapper.c b/qcom/pd-mapper/pd-mapper.c
index f26710d..c7db57f 100644
--- a/qcom/pd-mapper/pd-mapper.c
+++ b/qcom/pd-mapper/pd-mapper.c
@@ -241,6 +241,8 @@
 			continue;
 		}
 
+		firmware_value[n] = '\0';
+
 		if (strlen(FIRMWARE_BASE) + strlen(firmware_value) + 1 > sizeof(path))
 			continue;