patch-window_vector_cc 525 B

12345678910111213
  1. $OpenBSD: patch-window_vector_cc,v 1.1 2017/04/29 22:36:16 naddy Exp $
  2. --- window_vector.cc.orig
  3. +++ window_vector.cc
  4. @@ -1026,7 +1026,7 @@ const char * Window_vector::copyright_update()
  5. {
  6. int year = 1900 + t->tm_year;
  7. while( year )
  8. - { year_string.insert( 0U, 1, '0' + ( year % 10 ) ); year /= 10; }
  9. + { char c = '0' + ( year % 10 ); year_string.insert( 0U, 1, c ); year /= 10; }
  10. }
  11. history.push_back( year_string );
  12. if( Screen::get_string( "Year to add (^C to abort): ", history ) <= 0 )