aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-08 23:27:59 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-08 23:27:59 +1000
commit6400b60bdd8f10f8922643da8e8d235fb8874404 (patch)
tree6963115361bcdb494accaa240c2a2b9c0e2c1bcf /history.c
parent0e03e872be9bfbe67c0195812c61111dcecfaac5 (diff)
Fix a few places where uncasted 0 was used as a null pointer in vararg functions, causing potential crashes on 64-bit platforms
darcs-hash:20061008132759-ac50b-23fe4f70a5143b8b187780403d8d21fb69c3e83f.gz
Diffstat (limited to 'history.c')
-rw-r--r--history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/history.c b/history.c
index 4a12ae00..3b000660 100644
--- a/history.c
+++ b/history.c
@@ -150,7 +150,7 @@ static int history_load()
&hash_wcs_cmp,
4096 );
- fn = wcsdupcat2( env_get(L"HOME"), L"/.", mode_name, L"_history", 0 );
+ fn = wcsdupcat2( env_get(L"HOME"), L"/.", mode_name, L"_history", (void *)0 );
in_stream = wfopen( fn, "r" );
@@ -384,7 +384,7 @@ static void history_save()
/* Save the global history */
{
- fn = wcsdupcat2( env_get(L"HOME"), L"/.", mode_name, L"_history", 0 );
+ fn = wcsdupcat2( env_get(L"HOME"), L"/.", mode_name, L"_history", (void *)0 );
out_stream = wfopen( fn, "w" );
if( out_stream )