mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-09 13:42:09 -05:00
Couple more precautionary buffer-size increases, while we're
screwing down this sort of thing. [originally from svn r2203]
This commit is contained in:
parent
e05f560c21
commit
012f4af4ba
4
psftp.c
4
psftp.c
@ -1446,7 +1446,7 @@ static int verbose = 0;
|
|||||||
*/
|
*/
|
||||||
void fatalbox(char *fmt, ...)
|
void fatalbox(char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
strcpy(str, "Fatal:");
|
strcpy(str, "Fatal:");
|
||||||
@ -1459,7 +1459,7 @@ void fatalbox(char *fmt, ...)
|
|||||||
}
|
}
|
||||||
void connection_fatal(char *fmt, ...)
|
void connection_fatal(char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
strcpy(str, "Fatal:");
|
strcpy(str, "Fatal:");
|
||||||
|
8
scp.c
8
scp.c
@ -157,7 +157,7 @@ static void tell_str(FILE * stream, char *str)
|
|||||||
|
|
||||||
static void tell_user(FILE * stream, char *fmt, ...)
|
static void tell_user(FILE * stream, char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vsprintf(str, fmt, ap);
|
vsprintf(str, fmt, ap);
|
||||||
@ -213,7 +213,7 @@ static void gui_update_stats(char *name, unsigned long size,
|
|||||||
*/
|
*/
|
||||||
void fatalbox(char *fmt, ...)
|
void fatalbox(char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
strcpy(str, "Fatal: ");
|
strcpy(str, "Fatal: ");
|
||||||
@ -236,7 +236,7 @@ void fatalbox(char *fmt, ...)
|
|||||||
}
|
}
|
||||||
void connection_fatal(char *fmt, ...)
|
void connection_fatal(char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
strcpy(str, "Fatal: ");
|
strcpy(str, "Fatal: ");
|
||||||
@ -401,7 +401,7 @@ static void ssh_scp_init(void)
|
|||||||
*/
|
*/
|
||||||
static void bump(char *fmt, ...)
|
static void bump(char *fmt, ...)
|
||||||
{
|
{
|
||||||
char str[0x100]; /* Make the size big enough */
|
char str[512]; /* Make the size big enough */
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
strcpy(str, "Fatal: ");
|
strcpy(str, "Fatal: ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user