diff options
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 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 |