>Number: 3780

>Category:       bin
>Synopsis:       WEXITSTATUS() may return nagative value, which causes sh to generate bad $?

PR:		3780
Submitted by:	sanewo@ba2.so-net.or.jp
This commit is contained in:
Jordan K. Hubbard 1997-06-19 15:14:01 +00:00
parent 210a5dc89f
commit fc0eef9f89

View File

@ -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);