e5fd4a
diff -up hdparm-9.54/hdparm.c.bak hdparm-9.54/hdparm.c
e5fd4a
--- hdparm-9.54/hdparm.c.bak	2020-06-01 17:56:47.257520643 +0200
e5fd4a
+++ hdparm-9.54/hdparm.c	2020-06-01 17:57:29.285084217 +0200
e5fd4a
@@ -461,12 +461,15 @@ static void dump_identity (__u16 *idw)
e5fd4a
 {
e5fd4a
 	int i;
e5fd4a
 	char pmodes[64] = {0,}, dmodes[128]={0,}, umodes[128]={0,};
e5fd4a
-	char *model = strip(strndup((char *)&idw[27], 40));
e5fd4a
-	char *fwrev = strip(strndup((char *)&idw[23],  8));
e5fd4a
-	char *serno = strip(strndup((char *)&idw[10], 20));
e5fd4a
+	char *model = strndup((char *)&idw[27], 40);
e5fd4a
+	char *model_s = strip(model);
e5fd4a
+	char *fwrev = strndup((char *)&idw[23],  8);
e5fd4a
+	char *fwrev_s = strip(fwrev);
e5fd4a
+	char *serno = strndup((char *)&idw[10], 20);
e5fd4a
+	char *serno_s = strip(serno);
e5fd4a
 	__u8 tPIO;
e5fd4a
 
e5fd4a
-	printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model, fwrev, serno);
e5fd4a
+	printf("\n Model=%.40s, FwRev=%.8s, SerialNo=%.20s", model_s, fwrev_s, serno_s);
e5fd4a
 	printf("\n Config={");
e5fd4a
 	for (i = 0; i <= 15; i++) {
e5fd4a
 		if (idw[0] & (1<