diff --git a/src/modules/autoseed.c b/src/modules/autoseed.c index dd73943f2..4ba679439 100644 --- a/src/modules/autoseed.c +++ b/src/modules/autoseed.c @@ -31,6 +31,7 @@ /* util includes */ #include #include +#include #include #include #include @@ -186,8 +187,9 @@ newfaction *read_newfactions(const char *filename) if (email[0] == '\0') break; if (password[0] == '\0') { - strcpy(password, itoa36(rng_int())); - strcat(password, itoa36(rng_int())); + size_t sz; + sz = strlcpy(password, itoa36(rng_int()), sizeof(password)); + sz += strlcat(password, itoa36(rng_int()), sizeof(password)); } for (f = factions; f; f = f->next) { if (strcmp(f->email, email) == 0 && f->subscription