restore a fix from X.Org that I lost in previous merge.
This commit is contained in:
parent
1fb204e4b8
commit
a8a7f42d66
@ -2155,8 +2155,8 @@ ExecuteFunction(int func, char *action, Window w, TwmWindow *tmp_win,
|
||||
break;
|
||||
|
||||
case F_FILE:
|
||||
action = ExpandFilename(action);
|
||||
fd = open(action, O_RDONLY);
|
||||
ptr = ExpandFilename(action);
|
||||
fd = open(ptr, O_RDONLY);
|
||||
if (fd >= 0)
|
||||
{
|
||||
count = read(fd, buff, MAX_FILE_SIZE - 1);
|
||||
@ -2168,8 +2168,9 @@ ExecuteFunction(int func, char *action, Window w, TwmWindow *tmp_win,
|
||||
else
|
||||
{
|
||||
fprintf (stderr, "%s: unable to open file \"%s\"\n",
|
||||
ProgramName, action);
|
||||
ProgramName, ptr);
|
||||
}
|
||||
if (ptr != action) free(ptr);
|
||||
break;
|
||||
|
||||
case F_REFRESH:
|
||||
|
Loading…
Reference in New Issue
Block a user