diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-23 10:33:06 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-23 10:33:06 +0000 |
commit | 0bcaa115efd05ba3d6e73525a97cc65d51a5c9b7 (patch) | |
tree | d686701526b55cb525c5d66b157ca0664b55c62a /gcc/ada/sysdep.c | |
parent | 7927258bb48cba56f842c2c40e162d13d5ca8a6e (diff) |
2014-10-23 Hristian Kirtchev <kirtchev@adacore.com>
* sysdep.c (__gnat_localtime_tzoff): Properly delimit the
substring which represents the time zone on VxWorks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216586 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r-- | gcc/ada/sysdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c index bdda22cc69f..0ae05e06b1d 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 |