1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

exec_on_master_terminal(): tidy up.

This commit is contained in:
Laurent MONIN 2006-01-07 01:57:11 +01:00 committed by Laurent MONIN
parent 2e67ca1df9
commit ee0dc57771

View File

@ -205,11 +205,9 @@ exec_on_master_terminal(struct terminal *term,
int fg) int fg)
{ {
int blockh; int blockh;
unsigned char *param; int param_size = plen + dlen + 2 /* 2 null char */ + 1 /* fg */;
int param_size; unsigned char *param = fmem_alloc(param_size);
param_size = plen + dlen + 2 /* 2 null char */ + 1 /* fg */;
param = fmem_alloc(param_size);
if (!param) return; if (!param) return;
param[0] = fg; param[0] = fg;
@ -253,7 +251,7 @@ exec_on_slave_terminal( struct terminal *term,
unsigned char *data = fmem_alloc(data_size); unsigned char *data = fmem_alloc(data_size);
if (!data) return; if (!data) return;
data[0] = 0; data[0] = 0;
data[1] = fg; data[1] = fg;
memcpy(data + 2, path, plen + 1); memcpy(data + 2, path, plen + 1);