mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-19 15:56:24 -05:00
Double maximum size of a user variable (128 -> 256).
This commit is contained in:
parent
8ddc8676ef
commit
a6669903b2
4
eval.c
4
eval.c
@ -720,7 +720,7 @@ int setvar(int f, int n)
|
|||||||
int status; /* status return */
|
int status; /* status return */
|
||||||
struct variable_description vd; /* variable num/type */
|
struct variable_description vd; /* variable num/type */
|
||||||
char var[NVSIZE + 1]; /* name of variable to fetch */
|
char var[NVSIZE + 1]; /* name of variable to fetch */
|
||||||
char value[NSTRING]; /* value to set variable to */
|
char value[ 2 * NSTRING] ; /* value to set variable to */
|
||||||
|
|
||||||
/* first get the variable to set.. */
|
/* first get the variable to set.. */
|
||||||
if (clexec == FALSE) {
|
if (clexec == FALSE) {
|
||||||
@ -745,7 +745,7 @@ int setvar(int f, int n)
|
|||||||
if (f == TRUE)
|
if (f == TRUE)
|
||||||
strcpy(value, i_to_a(n));
|
strcpy(value, i_to_a(n));
|
||||||
else {
|
else {
|
||||||
status = mlreply("Value: ", &value[0], NSTRING);
|
status = mlreply( "Value: ", value, sizeof value);
|
||||||
if (status != TRUE)
|
if (status != TRUE)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user