def
ea6b741eb8
thread_sleep: ignore signal interruption
2019-03-24 23:14:37 +01:00
def
d9804f5142
str_format: always return length of written string
...
Quoting the man page of vsnprintf:
RETURN VALUE
Upon successful return, these functions return the number of characters printed
(excluding the null byte used to end output to strings).
The functions snprintf() and vsnprintf() do not write more than size bytes (including
the terminating null byte ('\0')). If the output was truncated due to this limit,
then the return value is the number of characters (excluding the terminating null
byte) which would have been written to the final string if enough space had been
available. Thus, a return value of size or more means that the output was truncated.
(See also below under NOTES.)
If an output error is encountered, a negative value is returned.
[...]
The glibc implementation of the functions snprintf() and vsnprintf() conforms to the
C99 standard, that is, behaves as described above, since glibc version 2.1. Until
glibc 2.0.6, they would return -1 when the output was truncated.
2019-03-21 13:39:25 +01:00
def
1e4890c499
More error checking in system.c ( fixes #1317 )
2019-03-19 23:16:29 +01:00
bors[bot]
d8e8a21a30
Merge #1469
...
1469: Don't use strtok. Close #1468 r=heinrich5991 a=Learath2
^
Co-authored-by: Learath <learath2@gmail.com>
2019-03-11 11:56:26 +00:00
Learath
9713f6c2cd
Improve interface to function
2019-03-11 14:39:54 +03:00
Learath
c4af290df5
Don't use strtok. Close #1468
2019-03-05 12:46:29 +03:00
def
deb2494692
Don't suggest to downgrade, clean up versioning ( fixes #1440 )
2019-03-03 20:31:23 +01:00
Learath
a46c31f356
Add a couple tests, fix #1457
2019-02-13 15:14:46 +01:00
Learath
37c67c00ad
Style
2019-02-13 15:13:44 +01:00
Learath
867facfffc
Forgot str_tokenize is not used now
2019-02-13 15:13:27 +01:00
Dennis Felsing
698a3f1c5a
Merge pull request #1443 from ChillerDragon/AutobanKnownBots
...
Add autoban depending on client version
2019-02-13 12:04:51 +01:00
Learath
5d99746cc1
Add str_tokenize and str_in_list
2019-02-11 18:40:40 +01:00
def
12fa8a23f5
Fix comment about str_utf8_comp_nocase
2019-02-11 17:11:33 +01:00
12pm
6d3e40760c
Fix build
2019-02-10 19:20:08 +01:00
12pm
74992d9bd7
Fix tests
2019-02-10 19:13:55 +01:00
12pm
ed55ac6d81
Fix tab autocompletion
2019-02-10 17:43:00 +01:00
Dennis Felsing
c16c50fa80
Merge pull request #1424 from ddnet/demo-markers
...
Demo browser: Show markers (fixes #329 )
2019-01-09 08:54:42 +01:00
def
faa3cc195d
UTF8 nocase compare & use for chat TAB completion
...
- As suggested by Arseniy Zarche
- Also updated confusables to Unicode 12
2019-01-09 08:31:03 +01:00
def
f9d9fee314
Demo browser: Show markers ( fixes #329 )
...
- Fetch Headers button
- Display Markers & Length columns
- Display footer info
- Don't rescan directory when not required
- Clean up code a bit
2019-01-09 08:25:03 +01:00
def
c8ee27332a
recvmmsg ipv6 fix
2018-12-23 22:57:28 +01:00
def
4b92e72763
Prevent copies
2018-12-17 22:15:41 +01:00
def
bfa25bac4a
cleanup
2018-12-17 20:49:25 +01:00
def
87887b7291
mmsgs fixes
2018-12-17 20:19:57 +01:00
def
6846a6ecad
Fixes and stress improvements
2018-12-17 20:05:50 +01:00
def
d0a887f688
Unused variable fix
2018-12-17 17:27:36 +01:00
def
4c39539d38
Mac OS fix
2018-12-17 17:19:01 +01:00
Dennis Felsing
9665dd67de
Mac OS fix
2018-12-17 15:07:09 +01:00
Dennis Felsing
1ca233988b
No bool in old C
2018-12-17 14:53:59 +01:00
Dennis Felsing
1221b1f11c
Fix Windows compilation
2018-12-17 14:44:19 +01:00
Dennis Felsing
9febf58f37
New try at recvmmsg with some improvements
2018-12-16 22:59:41 +01:00
Learath
19a458d523
Fix a couple issues
2018-12-08 00:24:57 +01:00
Learath
40d7b03f10
uf, typo
2018-12-08 00:06:54 +01:00
Learath
0c13c8cebb
Handle the windows console properly. Fixes #1394
2018-12-07 23:52:33 +01:00
yangfl
a1db76cdef
Remove extra semicolons
2018-11-18 14:27:48 +08:00
Learath
2e137e6fc7
net_addr_comp_ip -> net_addr_comp_noport
2018-10-08 19:56:51 +03:00
Learath
f1867e0403
Grammar fix "then->than"
2018-10-08 19:55:18 +03:00
Learath
1073b72965
Ignore DNSBL on "empty" servers.
2018-10-08 01:59:07 +03:00
Dennis Felsing
a21f01eef8
str_copy: Avoid -Wstringop-truncation warning in GCC8
2018-10-04 10:48:49 +02:00
Ryozuki
8e8e46a26a
fix windows compilation warning
2018-10-01 19:23:33 +02:00
Dennis Felsing
c9f28ce094
Forbid copying classes in threading
2018-08-29 11:32:53 +02:00
Dennis Felsing
c29a72eb70
Lock style
2018-08-27 16:36:36 +02:00
heinrich5991
67d36b695d
Also use sha256 for the mapbugs stuff
2018-08-19 12:12:11 +02:00
def
18529fa082
Revert "Implement recvmmsg"
...
This reverts commit de5fe64be5
.
2018-07-29 23:07:59 +02:00
def
5d8d900643
Revert recvmmsg
2018-07-29 22:49:34 +02:00
heinrich5991
9fcf5480f8
Return a pointer from str_endswith
as well
2018-07-26 14:18:23 +02:00
heinrich5991
746d3d6b1a
Add str_startswith
and str_endswith
...
Also add a couple of tests for both.
2018-07-26 14:06:56 +02:00
heinrich5991
57d3a61c3f
"termineted" -> "terminated"
2018-07-26 14:06:56 +02:00
Dennis Felsing
876ecc7909
fix
2018-07-26 08:30:00 +02:00
Dennis Felsing
0336b662c5
fix
2018-07-25 16:33:26 +02:00
Dennis Felsing
9f8b962e5d
fix
2018-07-25 16:10:33 +02:00