1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Fix an assortment of dupprintf() format string bugs.

I've enabled gcc's format-string checking on dupprintf, by declaring
it in misc.h to have the appropriate GNU-specific attribute. This
pointed out a selection of warnings, which I've fixed.

[originally from svn r10084]
This commit is contained in:
Simon Tatham
2013-11-17 14:05:44 +00:00
parent bb78583ad2
commit 85d1e7608e
6 changed files with 13 additions and 10 deletions

View File

@ -938,7 +938,7 @@ static const char *pty_init(void *frontend, void **backend_handle, Conf *conf,
*backend_handle = pty;
*realhost = dupprintf("\0");
*realhost = dupstr("");
return NULL;
}