sim-utils.c: prevent buffer overflow.
authorPavel I. Kryukov <kryukov@frtk.ru>
Sat, 30 Nov 2019 22:40:21 +0000 (01:40 +0300)
committerTom Tromey <tromey@adacore.com>
Wed, 4 Dec 2019 17:38:08 +0000 (10:38 -0700)
commitf47674be8e90a84edae49ec2b781201ea2f050bd
treeb6522c198e61e7193f0dbc8376026598c12f1fa7
parent4139ff008829d716830d18e8cfa8cbf5c0ae7562
sim-utils.c: prevent buffer overflow.

Representation of max 32-bit integer is 10 chars.
The potential issue is observed by GCC 7 targeted to AArch64.

sim/common/ChangeLog:
2019-12-01  Pavel I. Kryukov  <kryukov@frtk.ru>

* sim-utils.c: Prevent buffer overflow.
sim/common/ChangeLog
sim/common/sim-utils.c