aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/urldata.h2
-rw-r--r--lib/vtls/gtls.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 56430122f..84124b658 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1349,7 +1349,7 @@ struct UrlState {
long sessionage; /* number of the most recent session */
unsigned int tempcount; /* number of entries in use in tempwrite, 0 - 3 */
struct tempbuf tempwrite[3]; /* BOTH, HEADER, BODY */
- char *scratch; /* huge buffer[BUFSIZE*2] when doing upload CRLF replacing */
+ char *scratch; /* huge buffer[set.buffer_size*2] for upload CRLF replacing */
bool errorbuf; /* Set to TRUE if the error buffer is already filled in.
This must be set to FALSE every time _easy_perform() is
called. */
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 4bd1683d6..844be2de1 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -218,12 +218,13 @@ static void showtime(struct Curl_easy *data,
{
struct tm buffer;
const struct tm *tm = &buffer;
+ char str[96];
CURLcode result = Curl_gmtime(stamp, &buffer);
if(result)
return;
- snprintf(data->state.buffer,
- BUFSIZE,
+ snprintf(str,
+ sizeof(str),
"\t %s: %s, %02d %s %4d %02d:%02d:%02d GMT",
text,
Curl_wkday[tm->tm_wday?tm->tm_wday-1:6],
@@ -233,7 +234,7 @@ static void showtime(struct Curl_easy *data,
tm->tm_hour,
tm->tm_min,
tm->tm_sec);
- infof(data, "%s\n", data->state.buffer);
+ infof(data, "%s\n", str);
}
#endif