diff options
-rw-r--r-- | bin/sh/expand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 04c37a2..a72e351 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: expand.c,v 1.18 1997/05/19 00:18:40 steve Exp $ + * $Id: expand.c,v 1.19 1997/06/06 23:04:33 ache Exp $ */ #ifndef lint @@ -1388,6 +1388,8 @@ cvtnum(num, buf) temp[31] = '\0'; + if (neg) + num = -num; do { *--p = num % 10 + '0'; } while ((num /= 10) != 0); |