mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Patch from Colin Watson intended to give a clean Unix compile with GCC 4.
(Since we choose to compile with -Werror, this is particularly important.) I haven't yet checked that the resulting source actually compiles cleanly with GCC 4, hence not marking `gcc4-warnings' as fixed just yet. [originally from svn r7041]
This commit is contained in:
2
misc.c
2
misc.c
@ -102,7 +102,7 @@ prompts_t *new_prompts(void *frontend)
|
||||
void add_prompt(prompts_t *p, char *promptstr, int echo, size_t len)
|
||||
{
|
||||
prompt_t *pr = snew(prompt_t);
|
||||
unsigned char *result = snewn(len, unsigned char);
|
||||
char *result = snewn(len, char);
|
||||
pr->prompt = promptstr;
|
||||
pr->echo = echo;
|
||||
pr->result = result;
|
||||
|
Reference in New Issue
Block a user