mirror of
https://github.com/rfivet/uemacs.git
synced 2025-02-20 23:17:13 -05:00
Avoid calling mlwrite with computed string as format parameter.
This commit is contained in:
parent
2b8992350d
commit
e556f7714b
2
input.c
2
input.c
@ -512,7 +512,7 @@ int getstring( const char *prompt, char *buf, int nbuf, int eolchar)
|
|||||||
quotef = FALSE;
|
quotef = FALSE;
|
||||||
|
|
||||||
/* prompt the user for the input string */
|
/* prompt the user for the input string */
|
||||||
mlwrite(prompt);
|
mlwrite( "%s", prompt);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
#if COMPLC
|
#if COMPLC
|
||||||
|
11
search.c
11
search.c
@ -909,9 +909,9 @@ static int replaces(int kind, int f, int n)
|
|||||||
if (kind) {
|
if (kind) {
|
||||||
/* Get the query.
|
/* Get the query.
|
||||||
*/
|
*/
|
||||||
pprompt:
|
pprompt:
|
||||||
mloutfmt( &tpat[ 0], &pat[ 0], &rpat[ 0]) ;
|
mloutstr( tpat) ;
|
||||||
qprompt:
|
qprompt:
|
||||||
update(TRUE); /* show the proposed place to change */
|
update(TRUE); /* show the proposed place to change */
|
||||||
c = tgetc(); /* and input */
|
c = tgetc(); /* and input */
|
||||||
mloutstr( "") ; /* and clear it */
|
mloutstr( "") ; /* and clear it */
|
||||||
@ -1090,12 +1090,7 @@ int expandp(char *srcstr, char *deststr, int maxlength)
|
|||||||
*deststr++ = '^';
|
*deststr++ = '^';
|
||||||
*deststr++ = c ^ 0x40;
|
*deststr++ = c ^ 0x40;
|
||||||
maxlength -= 2;
|
maxlength -= 2;
|
||||||
} else if (c == '%') {
|
|
||||||
*deststr++ = '%';
|
|
||||||
*deststr++ = '%';
|
|
||||||
maxlength -= 2;
|
|
||||||
} else { /* any other character */
|
} else { /* any other character */
|
||||||
|
|
||||||
*deststr++ = c;
|
*deststr++ = c;
|
||||||
maxlength--;
|
maxlength--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user