Commit Diff


commit - 45d3e6aa91295bee056df8be5c3ed224420fba02
commit + ea26fd2840f6c7f286407e86f832d6ec5e93eeeb
blob - 9c2740976a10d59c1baba7c1201a490b445b50fd
blob + 6af58169e48f6382056e7af68536eaceeb1e9fae
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
@@ -300,7 +300,7 @@ main(int argc, const char *argv[])
 		strlcat(NGIRCd_ProtoID, "Z", sizeof NGIRCd_ProtoID);
 #endif
 		if (Conf_OperCanMode)
-			strcat(NGIRCd_ProtoID, "o");
+			strlcat(NGIRCd_ProtoID, "o", sizeof NGIRCd_ProtoID);
 #else /* IRCPLUS */
 		snprintf(NGIRCd_ProtoID, sizeof NGIRCd_ProtoID, "%s%s %s|%s",
 			 PROTOVER, PROTOIRC, PACKAGE_NAME, PACKAGE_VERSION);