14 lines
551 B
Plaintext
14 lines
551 B
Plaintext
$OpenBSD: patch-window_vector_cc,v 1.2 2017/07/06 07:16:11 bcallah Exp $
|
|
Index: window_vector.cc
|
|
--- window_vector.cc.orig
|
|
+++ window_vector.cc
|
|
@@ -1030,7 +1030,7 @@ const char * Window_vector::copyright_update()
|
|
{
|
|
int year = 1900 + t->tm_year;
|
|
while( year )
|
|
- { year_string.insert( 0U, 1, '0' + ( year % 10 ) ); year /= 10; }
|
|
+ { char c = '0' + ( year % 10 ); year_string.insert( 0U, 1, c ); year /= 10; }
|
|
}
|
|
history.push_back( year_string );
|
|
if( Screen::get_string( "Year to add (^C to abort): ", history ) <= 0 )
|