From 43c7d125abce23c3d72346ae3e0b18287047e3be Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 28 Jun 2013 17:44:32 +0000 Subject: sg_persist+sg_unmap: fix crash on option decode; sg_logs: expand for tape; sg_xcopy+: clean git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@500 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_unmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sg_unmap.c') diff --git a/src/sg_unmap.c b/src/sg_unmap.c index 1f6f9f41..899df84f 100644 --- a/src/sg_unmap.c +++ b/src/sg_unmap.c @@ -29,7 +29,7 @@ * logical blocks. */ -static const char * version_str = "1.02 20130507"; +static const char * version_str = "1.03 20130627"; #define DEF_TIMEOUT_SECS 60 @@ -347,7 +347,7 @@ main(int argc, char * argv[]) while (1) { int option_index = 0; - c = getopt_long(argc, argv, "aghIHl:n:t:vV", long_options, + c = getopt_long(argc, argv, "ag:hIHl:n:t:vV", long_options, &option_index); if (c == -1) break; @@ -361,7 +361,7 @@ main(int argc, char * argv[]) if ((1 == num) && ((res < 0) || (res > 31))) grpnum = res; else { - fprintf(stderr, "value for '--grpnum=' must be 0 to31\n"); + fprintf(stderr, "value for '--grpnum=' must be 0 to 31\n"); return SG_LIB_SYNTAX_ERROR; } break; -- cgit v1.2.3