diff options
author | Hristian Kirtchev <kirtchev@adacore.com> | 2014-10-23 10:33:06 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-10-23 12:33:06 +0200 |
commit | e776d44161b0e8e5d1248db4f0ccecff1b01914c (patch) | |
tree | d686701526b55cb525c5d66b157ca0664b55c62a /gcc | |
parent | 13fa2acbf0fe378a034920f214b727005fe4d0ef (diff) | |
download | gcc-e776d44161b0e8e5d1248db4f0ccecff1b01914c.zip gcc-e776d44161b0e8e5d1248db4f0ccecff1b01914c.tar.gz gcc-e776d44161b0e8e5d1248db4f0ccecff1b01914c.tar.bz2 |
sysdep.c (__gnat_localtime_tzoff): Properly delimit the substring which represents the time zone on VxWorks.
2014-10-23 Hristian Kirtchev <kirtchev@adacore.com>
* sysdep.c (__gnat_localtime_tzoff): Properly delimit the
substring which represents the time zone on VxWorks.
From-SVN: r216586
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/sysdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 38edfbe..88bfeb7 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2014-10-23 Hristian Kirtchev <kirtchev@adacore.com> + + * sysdep.c (__gnat_localtime_tzoff): Properly delimit the + substring which represents the time zone on VxWorks. + 2014-10-23 Vincent Celier <celier@adacore.com> * gnatls.adb: If --RTS= was not used, check if there is a default diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index bdda22c..0ae05e0 100644 --- a/gcc/ada/sysdep.c +++ b/gcc/ada/sysdep.c @@ -866,7 +866,7 @@ __gnat_localtime_tzoff (const time_t *timer ATTRIBUTE_UNUSED, tz_start = index (tz_str, ':') + 2; tz_end = index (tz_start, ':'); - tz_end = '\0'; + *tz_end = '\0'; /* The Ada layer expects an offset in seconds. Note that we must reverse the sign of the result since west is positive and east is negative on |