]> git.mxchange.org Git - flightgear.git/commit
Hans Ulrich NIEDERMANN:
authormfranz <mfranz>
Thu, 1 Mar 2007 17:53:24 +0000 (17:53 +0000)
committermfranz <mfranz>
Thu, 1 Mar 2007 17:53:24 +0000 (17:53 +0000)
commit4232c116a3864265dd6a9b13285067e6eaaecadb
treea92e70e6e592d961d01e7791fbc3368fbcce72ce
parentb11196998ea72fc91ba27c9108800daa2a5a0fc8
Hans Ulrich NIEDERMANN:

"""
Fix Y2K bug triggering string overflow

sim_control_.date_string is a char[7], so it can contain "yymmdd" and
the terminating '\0'. However, nowtime->tm_year is 107 for the year 2007,
so you'll end up with a 7 digit number and the string written to
sim_control_.date_string is longer than sim_control_.date_string is.
Ouch!
"""

mf: ... and sim_control_.date_string isn't even used.
src/FDM/LaRCsim/ls_interface.c