• Bernhard Link's avatar
    do not replace ~ a shell would not · 6860bdce
    Bernhard Link authored
    file_translateTildeInPath currently translates the first ~ it finds.
    This is different from shell which only translates it if it is the
    first character of a word and not if other letters follow.
    
    As file_translateTildeInPath is always called with a single filename,
    only replace it if this string is "~" or starts with "~/".
    
    Additionally add an size argument to the function, so that no string
    buffers can overrun and do not access a NULL pointer if HOME is not set.
    6860bdce
Name
Last commit
Last update
..
nls Loading commit data...
.cvsignore Loading commit data...
Aaa.c Loading commit data...
Aaa.h Loading commit data...
AaaP.h Loading commit data...
Aaa_bison.c Loading commit data...
Aaa_bison.h Loading commit data...
Aaa_bison.yacc Loading commit data...
Aaa_intern.h Loading commit data...
Aaa_lex.c Loading commit data...
Button.c Loading commit data...
Button.h Loading commit data...
ButtonP.h Loading commit data...
COPYING Loading commit data...
Clip.c Loading commit data...
Clip.h Loading commit data...
ClipP.h Loading commit data...
FileSel.c Loading commit data...
FileSel.h Loading commit data...
FileSelP.h Loading commit data...
Frame.c Loading commit data...
Frame.h Loading commit data...
FrameP.h Loading commit data...
Ghostview.c Loading commit data...
Ghostview.h Loading commit data...
GhostviewP.h Loading commit data...
MButton.c Loading commit data...
MButton.h Loading commit data...
MButtonP.h Loading commit data...
Makefile.am Loading commit data...
Scrollbar.c Loading commit data...
Scrollbar.h Loading commit data...
ScrollbarP.h Loading commit data...
Switch.c Loading commit data...
Switch.h Loading commit data...
SwitchP.h Loading commit data...
Vlist.c Loading commit data...
Vlist.h Loading commit data...
VlistP.h Loading commit data...
actions.c Loading commit data...
actions.h Loading commit data...
ad2c Loading commit data...
callbacks.c Loading commit data...
callbacks.h Loading commit data...
config.h Loading commit data...
confirm.c Loading commit data...
confirm.h Loading commit data...
descrip.mms Loading commit data...
dialog.c Loading commit data...
dialog.h Loading commit data...
doc_misc.c Loading commit data...
doc_misc.h Loading commit data...
error.c Loading commit data...
error.h Loading commit data...
file.c Loading commit data...
file.h Loading commit data...
gv-i18n.pl Loading commit data...
gv-update-userconfig.in Loading commit data...
gv_copyright.dat Loading commit data...
gv_current.xbm Loading commit data...
gv_doc.xbm Loading commit data...
gv_dummy.dat Loading commit data...
gv_empty.xbm Loading commit data...
gv_even.xbm Loading commit data...
gv_font_res-I18N_mb.dat Loading commit data...
gv_font_res.dat Loading commit data...
gv_icon.xbm Loading commit data...
gv_layout_res.dat Loading commit data...
gv_message.h Loading commit data...
gv_misc_res.dat Loading commit data...
gv_odd.xbm Loading commit data...
gv_selected.xbm Loading commit data...
gv_signal.c Loading commit data...
gv_signal.h Loading commit data...
gv_spartan.dat Loading commit data...
gv_unmark.xbm Loading commit data...
gv_user_res.dat Loading commit data...
gv_widgetless.dat Loading commit data...
info.c Loading commit data...
info.h Loading commit data...
magmenu.c Loading commit data...
magmenu.h Loading commit data...
main.c Loading commit data...
main_globals.h Loading commit data...
main_resources.h Loading commit data...
media.c Loading commit data...
media.h Loading commit data...
message.h Loading commit data...
misc.c Loading commit data...
misc.h Loading commit data...
misc_private.c Loading commit data...
misc_private.h Loading commit data...
miscmenu.c Loading commit data...
miscmenu.h Loading commit data...
note.c Loading commit data...
note.h Loading commit data...
options.c Loading commit data...
options.h Loading commit data...
options_fs.c Loading commit data...
options_fs.h Loading commit data...
options_gs.c Loading commit data...
options_gs.h Loading commit data...
options_gv.c Loading commit data...
options_gv.h Loading commit data...
options_setup.c Loading commit data...
options_setup.h Loading commit data...
paths.h Loading commit data...
popup.c Loading commit data...
popup.h Loading commit data...
process.c Loading commit data...
process.h Loading commit data...
ps.c Loading commit data...
ps.h Loading commit data...
resource.c Loading commit data...
resource.h Loading commit data...
save.c Loading commit data...
save.h Loading commit data...
scale.c Loading commit data...
scale.h Loading commit data...
secscanf.c Loading commit data...
secscanf.h Loading commit data...
setenv.c Loading commit data...
setenv.h Loading commit data...
types.h Loading commit data...
version.c Loading commit data...
version.h Loading commit data...
versionp.h Loading commit data...
widgets_misc.c Loading commit data...
widgets_misc.h Loading commit data...
zoom.c Loading commit data...
zoom.h Loading commit data...