]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/ngircd.c
Fix another strcat warning missed in commit 4c5b43
[ngircd.git] / src / ngircd / ngircd.c
index d76b47d4ba86dbf3969dfbae1544701c0e4d9608..6af58169e48f6382056e7af68536eaceeb1e9fae 100644 (file)
@@ -297,10 +297,10 @@ main(int argc, const char *argv[])
                         PROTOVER, PROTOIRCPLUS, PACKAGE_NAME, PACKAGE_VERSION,
                         IRCPLUSFLAGS);
 #ifdef ZLIB
-               strcat(NGIRCd_ProtoID, "Z");
+               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);
@@ -817,8 +817,8 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
                            "Changed working directory to \"%s\" ...",
                            pwd->pw_dir);
                else
-                       Log(LOG_INFO,
-                           "Notice: Can't change working directory to \"%s\": %s!",
+                       Log(LOG_ERR,
+                           "Can't change working directory to \"%s\": %s!",
                            pwd->pw_dir, strerror(errno));
        } else
                Log(LOG_ERR, "Can't get user informaton for UID %d!?", Conf_UID);