This hack is a libstdc++ 4.8 workaround to do with gets.  It was added
by 46d04a331c1ee Richard Smith, Sun Jan 8 04:01:15 2017 +0000.  The
libstdc++ bug was fixed in 2016 for gcc 6.3 (released Dec2016) and
later.
This is more recent than the other libstdc++ hackectomy, but still over 4 years with a fix. WDYT?