mirror of
https://github.com/EnergyMech/energymech.git
synced 2025-12-29 16:14:43 +00:00
2018 cleanup update
This commit is contained in:
@@ -716,7 +716,7 @@ User *add_user(char *handle, char *pass, int axs)
|
||||
#endif /* DEBUG */
|
||||
|
||||
set_mallocdoer(add_user);
|
||||
user = (User*)Calloc(sizeof(User) + Strlen2(handle,pass));
|
||||
user = (User*)Calloc(sizeof(User) + Strlen(handle,pass,NULL)); // Strlen() tolerates pass being NULL, Strlen2() does not.
|
||||
user->x.x.access = axs;
|
||||
user->next = current->userlist;
|
||||
current->userlist = user;
|
||||
|
||||
Reference in New Issue
Block a user