mirror of
https://github.com/osmarks/ngircd.git
synced 2025-08-05 21:33:44 +00:00
ngircd.c, main(): use strlcat() instead of strcat()
This fixes the following warning on OpenBSD 5.3: ngircd.o(.text+0xeb4): In function `main': src/ngircd/ngircd.c:300: warning: strcat() is almost always misused, please use strlcat() Thanks to Götz Hoffart for reporting this!
This commit is contained in:
parent
86cd2da8d5
commit
4c5b439992
@ -297,7 +297,7 @@ main(int argc, const char *argv[])
|
|||||||
PROTOVER, PROTOIRCPLUS, PACKAGE_NAME, PACKAGE_VERSION,
|
PROTOVER, PROTOIRCPLUS, PACKAGE_NAME, PACKAGE_VERSION,
|
||||||
IRCPLUSFLAGS);
|
IRCPLUSFLAGS);
|
||||||
#ifdef ZLIB
|
#ifdef ZLIB
|
||||||
strcat(NGIRCd_ProtoID, "Z");
|
strlcat(NGIRCd_ProtoID, "Z", sizeof NGIRCd_ProtoID);
|
||||||
#endif
|
#endif
|
||||||
if (Conf_OperCanMode)
|
if (Conf_OperCanMode)
|
||||||
strcat(NGIRCd_ProtoID, "o");
|
strcat(NGIRCd_ProtoID, "o");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user