From: claudio Date: Thu, 8 Apr 2021 18:35:02 +0000 (+0000) Subject: Increase buffer size for http_info a bit. 64 chars is a bit short for X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=760e3f754b8ce940aa091bcdd088673fe944ce43;p=openbsd Increase buffer size for http_info a bit. 64 chars is a bit short for RRDP URLs. --- diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index 40ca07d3e82..bae6f2ac246 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.25 2021/04/08 18:32:55 claudio Exp $ */ +/* $OpenBSD: http.c,v 1.26 2021/04/08 18:35:02 claudio Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -130,7 +130,7 @@ size_t tls_ca_size; static const char * http_info(const char *url) { - static char buf[64]; + static char buf[80]; if (strnvis(buf, url, sizeof buf, VIS_SAFE) >= (int)sizeof buf) { /* overflow, add indicator */