real_time_clock: fix _user_get_timezone() after 6ad3d25212
6ad3d25212 changed the timezoneOffset type from
time_t to int32 without adjusting the user_memcpy size. Harmless as the
function is hardly used with a non-null argument.
This commit is contained in:
@@ -299,7 +299,7 @@ _user_get_timezone(int32 *_timezoneOffset, char *userName, size_t nameLength)
|
|||||||
|
|
||||||
if (_timezoneOffset != NULL
|
if (_timezoneOffset != NULL
|
||||||
&& (!IS_USER_ADDRESS(_timezoneOffset)
|
&& (!IS_USER_ADDRESS(_timezoneOffset)
|
||||||
|| user_memcpy(_timezoneOffset, &offset, sizeof(time_t)) < B_OK))
|
|| user_memcpy(_timezoneOffset, &offset, sizeof(offset)) < B_OK))
|
||||||
return B_BAD_ADDRESS;
|
return B_BAD_ADDRESS;
|
||||||
|
|
||||||
if (userName != NULL
|
if (userName != NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user