From: Andre Noll Date: Thu, 22 Oct 2009 20:50:58 +0000 (+0200) Subject: populate_user_list(): Use correct buffer size. X-Git-Tag: v0.4.0~7^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c630fae7b18ec399c45305737f10ab47733dc63e;p=paraslash.git populate_user_list(): Use correct buffer size. "line" is defined as a 255 byte buffer. Use sizeof(line) rather than MAXLINE in the call to para_fgets(). This is not a real bug though as MAXLINE happens to be 255 as well. --- diff --git a/user_list.c b/user_list.c index 63bfdfc2..f5aabc09 100644 --- a/user_list.c +++ b/user_list.c @@ -39,7 +39,7 @@ static void populate_user_list(char *user_list_file) struct user *u; RSA *rsa; - ret = para_fgets(line, MAXLINE, file_ptr); + ret = para_fgets(line, sizeof(line), file_ptr); if (ret <= 0) break; if (sscanf(line,"%200s %200s %200s %200s", w, n, k, p) < 3)