mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-04 11:27:17 -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;
|
||||
|
||||
/* prompt the user for the input string */
|
||||
mlwrite(prompt);
|
||||
mlwrite( "%s", prompt);
|
||||
|
||||
for (;;) {
|
||||
#if COMPLC
|
||||
|
11
search.c
11
search.c
@ -909,9 +909,9 @@ static int replaces(int kind, int f, int n)
|
||||
if (kind) {
|
||||
/* Get the query.
|
||||
*/
|
||||
pprompt:
|
||||
mloutfmt( &tpat[ 0], &pat[ 0], &rpat[ 0]) ;
|
||||
qprompt:
|
||||
pprompt:
|
||||
mloutstr( tpat) ;
|
||||
qprompt:
|
||||
update(TRUE); /* show the proposed place to change */
|
||||
c = tgetc(); /* and input */
|
||||
mloutstr( "") ; /* and clear it */
|
||||
@ -1090,12 +1090,7 @@ int expandp(char *srcstr, char *deststr, int maxlength)
|
||||
*deststr++ = '^';
|
||||
*deststr++ = c ^ 0x40;
|
||||
maxlength -= 2;
|
||||
} else if (c == '%') {
|
||||
*deststr++ = '%';
|
||||
*deststr++ = '%';
|
||||
maxlength -= 2;
|
||||
} else { /* any other character */
|
||||
|
||||
*deststr++ = c;
|
||||
maxlength--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user