From ead55e15f84b7be4cc4aa1e35fccf3d4e0dfa69e312f3729affcab2f3c9420cc Mon Sep 17 00:00:00 2001
From: Michal Seben <mseben@gmail.com>
Date: Thu, 17 Sep 2009 08:02:05 +0000
Subject: [PATCH] OBS-URL:
 https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=9

---
 hdparm-9.22-leak-fix.patch | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/hdparm-9.22-leak-fix.patch b/hdparm-9.22-leak-fix.patch
index ec0cdd6..59c6ea8 100644
--- a/hdparm-9.22-leak-fix.patch
+++ b/hdparm-9.22-leak-fix.patch
@@ -1,5 +1,5 @@
---- hdparm.c	2009-09-16 17:10:58.000000000 +0200
-+++ hdparm.c	2009-08-02 22:08:56.000000000 +0200
+--- hdparm.c.old	2009-08-02 22:08:56.000000000 +0200
++++ hdparm.c	2009-09-17 09:57:44.000000000 +0200
 @@ -880,7 +880,7 @@
  {
  	__u64 start_lba;
@@ -9,3 +9,12 @@
  
  	err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL);
  	if (err)
+@@ -891,7 +891,7 @@
+ 	}
+ 
+ 	if (!shortened)
+-		fdevname = strdup("the full disk");
++		fdevname = strdupa("the full disk");
+ 
+ 	if (start_lba == 0ULL)
+ 		return 0;