]> git.ipfire.org Git - thirdparty/curl.git/commit
silly web server: silent a compilation warning
authorPatrick Monnerat <patrick@monnerat.net>
Tue, 28 Jan 2020 10:56:41 +0000 (11:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 8 Mar 2020 16:30:55 +0000 (17:30 +0100)
commit77336671dc4d036bc36c135afba47ea52b1b6663
treecf26ead368fef124cb089d38c716f540bd8a3ae5
parent06a1b821404c176fde883a826a0db712695dd964
silly web server: silent a compilation warning

Recent gcc warns when byte count of strncpy() equals the destination
buffer size. Since the destination buffer is previously cleared and
the source string is always shorter, reducing the byte count by one
silents the warning without affecting the result.

Closes #5059
tests/server/sws.c