aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-08-24 20:30:14 +1000
committerGravatar axel <axel@liljencrantz.se>2006-08-24 20:30:14 +1000
commit2fd48bce1123dedae46d574411cfe2d33b619289 (patch)
tree03a1024dd93641cecc616cc649e331373fcf48a7 /reader.c
parentd1a3e6abf539452cf3115982548cf820bacef24a (diff)
Fix use og uncasted 0 as null pointer in vararg function. Potential crash bug on 64 bit systems.
darcs-hash:20060824103014-ac50b-3fb830f548d383b8cef7a37b737c90f3ad30c4bd.gz
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.c b/reader.c
index 3a47fa82..b5e8ff7a 100644
--- a/reader.c
+++ b/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/") )