Eliminate warning on OS X where argument to tigetstr is not const

This commit is contained in:
Keith Winstein
2012-03-10 06:02:17 -05:00
parent 0f8d0eea0d
commit 122d9fbccf
+2 -1
View File
@@ -52,7 +52,8 @@ Display::Display( bool use_environment )
} }
} }
char *val = tigetstr( "ech" ); char ech_name[] = "ech";
char *val = tigetstr( ech_name );
if ( val <= 0 ) { if ( val <= 0 ) {
has_ech = false; has_ech = false;
} }