mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:23:34 +08:00
Fix use og uncasted 0 as null pointer in vararg function. Potential crash bug on 64 bit systems.
darcs-hash:20060824103014-ac50b-3fb830f548d383b8cef7a37b737c90f3ad30c4bd.gz
This commit is contained in:
parent
d1a3e6abf5
commit
2fd48bce11
2
reader.c
2
reader.c
|
@ -649,7 +649,7 @@ void reader_write_title()
|
|||
as that of a virtual terminal, we assume it supports setting the
|
||||
title. Otherwise we check the ttyname.
|
||||
*/
|
||||
if( !term || !contains_str( term, L"xterm", L"screen", L"nxterm", L"rxvt", 0 ) )
|
||||
if( !term || !contains_str( term, L"xterm", L"screen", L"nxterm", L"rxvt", (wchar_t *)0 ) )
|
||||
{
|
||||
char *n = ttyname( STDIN_FILENO );
|
||||
if( strstr( n, "tty" ) || strstr( n, "/vc/") )
|
||||
|
|
Loading…
Reference in New Issue
Block a user