Make sure to not skip any argument when converting from deprecated

+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR:		193994
Submitted by:	rodrigo
MFC after:	3 days
This commit is contained in:
Baptiste Daroussin 2014-10-02 06:29:49 +00:00
parent 0434c163cc
commit 3e16491d77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272398

View File

@ -897,7 +897,7 @@ fix_obsolete_keys(int *argc, char **argv)
}
}
}
sprintf(sopt, "-k%d.%d", f1, c1);
sprintf(sopt, "-k%d.%d%s", f1, c1, sopts1);
argv[i] = sort_strdup(sopt);
}
}