Commit Graph

32 Commits

Author SHA1 Message Date
18165409bb Fix gcc 15 -Wunterminated-string-initialization
* libwget/base64.c (base64_encode): Drop explicit error length.
* libwget/buffer_printf.c (convert_pointer): Likewise.

Just cosmetics - allows to build with -Werror.
2025-11-09 19:43:29 +01:00
188989e067 Update copyright year 2024-01-07 12:41:02 +01:00
15ba1db248 Update copyrights 2023-08-31 12:57:30 +02:00
b8839418d0 * libwget/buffer_printf.c (read_precision,read_field_width): Use bool arg 2022-10-03 18:36:45 +02:00
76ebb467c2 * libwget/buffer_printf.c (copy_string): Use strnlen if precision is given 2022-10-03 18:33:32 +02:00
45f5033bb9 * libwget/buffer_printf.c (read_precision): Remove superfluous initialization 2022-10-03 17:43:38 +02:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
22162f82b2 Update copyright year 2021-01-22 21:58:38 +01:00
59d9ecd9c0 * Update copyright year to 2020 2020-01-10 00:33:02 +01:00
c5b0473d5c * libwget/buffer_printf: Fix implicit conversionsi (use unsigned flag values) 2020-01-06 13:00:50 +01:00
8abffc42d5 * libwget/buffer_printf: Fix implicit conversions 2020-01-06 12:57:35 +01:00
cb73fbc4ef * libwget/buffer_printf.c: Improve C99 compliancy 2019-09-18 16:56:25 +02:00
4b9edbad2d Update Copyright statements to be compatible with update-copyright module 2019-09-10 23:41:56 +02:00
db50c6a801 Rename wget_buffer_t -> wget_buffer
* include/wget/wget.h: Rename wget_buffer_t -> wget_buffer
* examples/*.c: Likewise
* fuzz/libwget_iri_fuzzer.c: Likewise
* libwget/*.c: Likewise
* src/*.c: Likewise
* tests/*.c: Likewise
* unit-tests/*.c: Likewise
2019-07-18 12:30:57 +02:00
cdb3600791 Update copyrigght to 2019 2019-01-02 12:42:53 +01:00
3688ffb941 Update copyright to 2018 2018-04-30 20:52:11 +02:00
e0f49769bb * libwget/buffer_printf.c (wget_buffer_vprintf_append): Reset precision after use 2017-09-13 20:17:45 +02:00
fc5d41de8d * libwget/buffer_printf.c: Do not document internal defines 2017-08-03 11:47:15 +02:00
7da9f30845 Fix buffer_printf() when char type is unsigned
Sometimes 'char' is not enough. C doesn't specify if it is
signed or unsigned. Here we had to explicitly use 'signed char'
instead of 'char'.
Gcc can be switched to unsigned char with -funsigned-char.

Reported-by: Michael <michael@cyber-dome.com>
2017-07-11 21:31:47 +02:00
2e2e6a69a0 Fix MinGW compatibility issues
* libwget/buffer_printf.c (_read_precision): do not pass a va_list
   as argument.
   (_read_field_width): likewise.
2017-06-16 10:57:59 +02:00
6aba81d4e3 Remove nonnnull attribute from functions
* include/wget/wget.h: Remove G_GNUC_WGET_NONNULL from several functions
* libwget/buffer.c: Add explicit checks for NULL
* libwget/buffer_printf.c (wget_buffer_vprintf_append): Likewise
* libwget/net.c: Likewise

The nonnull attribute removes the NULL checks under certain conditions.
That might turn out as a security flaw.
2017-06-15 12:20:48 +02:00
0f3f8bd35a docs: Inline docs for buffer and buffer_printf 2017-06-13 21:37:48 +02:00
c6ee3d79ad Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
b9ce04400e * libwget/buffer_printf.c: Cast output of va_arg correctly 2017-04-22 22:51:31 +02:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
9568b0c87e Rename include/libwget.h to include/wget/wget.h+wgetver.h 2016-09-30 09:47:32 +02:00
dd3c2f63b2 Updated copyright year for all relevant files 2016-01-25 13:06:21 +01:00
943f61295c Fix wrong argument fetch in buffer printf routine
* libwget/buffer_printf.c (wget_buffer_vprintf_append): Fetch long value
  from stack instead of long long with %l[dioux]

Found on Solaris 11 SPARC
2016-01-15 15:38:38 +01:00
0ecbd6e69a Removed redundant buffer print routines
Removed wget_buffer_vprintf_append, wget_buffer_printf_append,
wget_buffer_vprintf2 and wget_buffer_printf2.
Renamed their *2 counterpart to their old names.
2016-01-13 15:01:43 +01:00
dbc9e54a24 Use c-ctype.h where possible
* libwget/atom_url.c, libwget/buffer_printf.c, libwget/css.c,
  libwget/html_url.c, libwget/http.c, libwget/rss_url.c, libwget/sitemap_url.c,
  src/options.c src/wget.c, tests/libtest.c, tests/test-parse-html.c:
  Use c-ctype.h where possible
2016-01-13 11:34:31 +01:00
0f8e49128a Transfer copyright to Free Software Foundation, Inc. 2015-09-22 11:50:06 +02:00
c6b0e461a1 Transform Mget into Wget 2015-09-19 22:54:38 +02:00