diff options
Diffstat (limited to 'sysutils/cdrdao/patches/patch-ae')
-rw-r--r-- | sysutils/cdrdao/patches/patch-ae | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sysutils/cdrdao/patches/patch-ae b/sysutils/cdrdao/patches/patch-ae index 741f730dd1b..5beefedc6c6 100644 --- a/sysutils/cdrdao/patches/patch-ae +++ b/sysutils/cdrdao/patches/patch-ae @@ -1,17 +1,17 @@ -$NetBSD: patch-ae,v 1.3 2004/07/19 02:21:57 fredb Exp $ +$NetBSD: patch-ae,v 1.4 2009/11/22 21:05:18 drochner Exp $ ---- dao/ScsiIf-linux.cc.orig 2004-04-12 20:23:44.000000000 -0500 +--- dao/ScsiIf-linux.cc.orig 2009-09-28 12:12:03.000000000 +0200 +++ dao/ScsiIf-linux.cc -@@ -398,6 +398,12 @@ - for (i = 3; i >= 0 && revision_[i] == ' '; i--) { - revision_[i] = 0; - } +@@ -269,6 +269,12 @@ int ScsiIf::inquiry() + for (i = 3; i >= 0 && revision_[i] == ' '; i--) { + revision_[i] = 0; + } + -+ if (vendor_[0] == 0) -+ strncpy(vendor_, "UNKNOWN", 8); ++ if (vendor_[0] == 0) ++ strncpy(vendor_, "UNKNOWN", 8); + -+ if (product_[0] == 0) -+ strncpy(product_, "UNKNOWN", 8); ++ if (product_[0] == 0) ++ strncpy(product_, "UNKNOWN", 8); - return 0; + return 0; } |