188989e067
Update copyright year
2024-01-07 12:41:02 +01:00
15ba1db248
Update copyrights
2023-08-31 12:57:30 +02:00
791affdaaa
Fix wget_buffer_trim() for strings with only whitespaces
...
* libwget/buffer.c: Don't access `start - 1`
* unit-tests/test.c: Add tests
Co-authored-by: Tim Rühsen <tim.ruehsen@gmx.de >
2022-06-26 13:45:17 +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
50f01a889d
* libwget/buffer.c: Improve C99 compliancy
2019-09-18 16:55:08 +02:00
4b9edbad2d
Update Copyright statements to be compatible with update-copyright module
2019-09-10 23:41:56 +02:00
17fb012173
* libwget/buffer.c (wget_buffer_deinit): Fix NONNULL issue
2019-08-21 21:46:21 +02:00
d07a917ee2
* libwget/buffer.c: Add examples to documentation
2019-08-21 21:46:20 +02:00
54c32f5627
Cleanup + amend return vales of buffer functions
...
* include/wget/wget.h: Add wget_buffer.error
* libwget/buffer.c: Amend docs,
change return type of wget_buffer_init(),
amend wget_buffer_alloc(),
set buf.error in _buffer_realloc()
* libwget/printf.c: Check buf.error, return (size_t)-1
* unit-tests/test.c: Amend tests appropriately
2019-08-21 21:46:20 +02:00
ca6c664a92
* libwget/buffer.c (_buffer_realloc): Make use of realloc() if possible
2019-08-21 21:46:20 +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
5079807ffd
Remove xmalloc define for wget_malloc
...
* libwget/private.h: Remove #define
* libwget/*.c: Replace xmalloc by wget_malloc
2019-06-20 16:43:46 +02:00
9afed6a6cd
Amend buffer functions to handle failed memory allocations
...
* include/wget/wget.h: wget_buffer_ensure_capacity() returns int
* libwget/buffer.c (wget_buffer_init): Return NULL if malloc fails,
(_buffer_realloc): Return error if malloc fails
* libwget/http.c (wget_http_get_response_cb): Check return value of
wget_buffer_ensure_capacity()
* unit-tests/test.c (test_buffer): Add asserts
2019-06-19 16:59:21 +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
e606417a4a
Fix doxygen warnings
...
* README.md: Mark options
* docs/wget2_manual.md: Mark URLs
* libwget/bar.c: Fix doc for bar_init(),
add doxygen close tag at end of file
* libwget/buffer.c: Fix doc for wget_buffer_reset()
* libwget/console.c: Move unused tag to front of param
* libwget/hpkp.c: Fix documented params for wget_hpkp_new()
* libwget/iri.c: Fix doc for wget_iri_supported()
* libwget/net.c: Fix doc for wget_tcp_printf()
* libwget/utils.c: Move unused tag to front of param
2017-07-21 11:12:23 +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
f3741f0c7b
Make wget_buffer_realloc static
...
* libwget/buffer.c (wget_buffer_realloc): rename to _buffer_realloc,
and make it static.
(_buffer_realloc): new function.
This function may overflow if incorrectly used so we make it internal to
'buffer.c'. All the functions there that rely on it know how to use it
correctly.
2017-05-28 13:37:34 +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
ec396c577f
Fix URLs to HTTPS where possible
2017-02-28 15:31:30 +01:00
e39e6303ab
* libwget/buffer.c (wget_buffer_free_data): Set size to 0
2017-02-21 17:02:34 +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
2b105c196e
Remove redundant code from buufer routines
...
* libwget/buffer.c (wget_buffer_strcpy, wget_buffer_strcat):
Remove redundant code
2016-01-13 09:52:32 +01:00
8aa679cef6
Complete docs in I/O API
...
* libwget/http.c (wget_http_get_response_cb): removed unused variable
(compiler warning).
* libwget/io.c
(wget_fdgetline,wget_getline,wget_read_file,wget_update_file): added
source docs. Refactor: avoid code repetition.
(wget_ready_2_transfer): fixed HTML rendering of docs.
* docs/libwget/libwget-sections.txt: added new functions to GTK-Doc.
2015-12-01 12:00:03 +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