aboutsummaryrefslogtreecommitdiff
path: root/src/sg_xcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_xcopy.c')
-rw-r--r--src/sg_xcopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_xcopy.c b/src/sg_xcopy.c
index ef239595..16223784 100644
--- a/src/sg_xcopy.c
+++ b/src/sg_xcopy.c
@@ -62,7 +62,7 @@
#include "sg_cmds_extra.h"
#include "sg_io_linux.h"
-static const char * version_str = "0.46 20140625";
+static const char * version_str = "0.46 20141224";
#define ME "sg_xcopy: "
@@ -286,12 +286,12 @@ find_bsg_major(void)
return;
}
while ((cp = fgets(b, sizeof(b), fp))) {
- if ((1 == sscanf(b, "%s", a)) &&
+ if ((1 == sscanf(b, "%126s", a)) &&
(0 == memcmp(a, "Character", 9)))
break;
}
while (cp && (cp = fgets(b, sizeof(b), fp))) {
- if (2 == sscanf(b, "%d %s", &n, a)) {
+ if (2 == sscanf(b, "%d %126s", &n, a)) {
if (0 == strcmp("bsg", a)) {
bsg_major = n;
break;