diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-28 16:40:09 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-08-07 16:50:35 +0200 |
commit | 1e2f9219883452ef7da37c3c984b3e3d2939656b (patch) | |
tree | d1414af1325ab9f90e37305800e3a748d90ddf9d /src/uicmd.cc | |
parent | 0220c850a043af46385d6cd6cf4ffa9ceb5696e3 (diff) |
Fix pedantic warnings
Reviewed-by: dogma
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r-- | src/uicmd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index d289df0c..03d191ad 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -1268,7 +1268,7 @@ void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url) Dstr *dstr_url; DilloUrl *vs_url; static int post_id = 0; - char tag[8]; + char tag[16]; const char *content_type = a_Nav_get_content_type(url); a_Misc_parse_content_type(content_type, &major, NULL, NULL); @@ -1281,7 +1281,7 @@ void a_UIcmd_view_page_source(BrowserWindow *bw, const DilloUrl *url) if (URL_FLAGS(url) & URL_Post) { /* append a custom string to differentiate POST URLs */ post_id = (post_id < 9999) ? post_id + 1 : 0; - snprintf(tag, 8, "_%.4d", post_id); + snprintf(tag, 16, "_%.4d", post_id); dStr_append(dstr_url, tag); } vs_url = a_Url_new(dstr_url->str, NULL); |