diff --git a/src/zm_user.cpp b/src/zm_user.cpp index 2d4a20851..918c93866 100644 --- a/src/zm_user.cpp +++ b/src/zm_user.cpp @@ -53,7 +53,7 @@ User::User(const MYSQL_ROW &dbrow) { id = atoi(dbrow[index++]); strncpy(username, dbrow[index++], sizeof(username)-1); strncpy(password, dbrow[index++], sizeof(password)-1); - enabled = static_castatoi(dbrow[index++]); + enabled = static_cast(atoi(dbrow[index++])); stream = (Permission)atoi(dbrow[index++]); events = (Permission)atoi(dbrow[index++]); control = (Permission)atoi(dbrow[index++]);