comparison src/fileio.c @ 4826:780bb5441c14

use call3_check_string on all invocations of external handlers in expand-file-name
author Ben Wing <ben@xemacs.org>
date Sat, 26 Dec 2009 21:04:32 -0600
parents c12b646d84ee
children b3ea9c582280
comparison
equal deleted inserted replaced
4825:2e1527b8385b 4826:780bb5441c14
792 if (!NILP (default_directory)) 792 if (!NILP (default_directory))
793 { 793 {
794 handler = Ffind_file_name_handler (default_directory, Qexpand_file_name); 794 handler = Ffind_file_name_handler (default_directory, Qexpand_file_name);
795 if (!NILP (handler)) 795 if (!NILP (handler))
796 RETURN_UNGCPRO_EXIT_PROFILING (QSin_expand_file_name, 796 RETURN_UNGCPRO_EXIT_PROFILING (QSin_expand_file_name,
797 call3 (handler, Qexpand_file_name, 797 call3_check_string
798 name, default_directory)); 798 (handler, Qexpand_file_name,
799 name, default_directory));
799 } 800 }
800 801
801 o = XSTRING_DATA (default_directory); 802 o = XSTRING_DATA (default_directory);
802 803
803 /* Make sure DEFAULT_DIRECTORY is properly expanded. 804 /* Make sure DEFAULT_DIRECTORY is properly expanded.