Fixed a minor problem with off_fmt, when this format would not
produce the '-' sign.
This commit is contained in:
parent
493efb1bf7
commit
9877db53d9
|
@ -535,8 +535,12 @@ char *strarg(t) {
|
|||
strarg(offtyp);
|
||||
for (p = argstr; *p; p++)
|
||||
;
|
||||
if (argval >= 0)
|
||||
if ((full) argval >= 0)
|
||||
*p++ = '+';
|
||||
else {
|
||||
*p++ = '-';
|
||||
argval = - (full) argval;
|
||||
}
|
||||
sprintf(p,off_fmt,(full)argval);
|
||||
break;
|
||||
case sp_cend:
|
||||
|
|
Loading…
Reference in a new issue