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:
Jérôme Duval
2018-07-07 16:07:39 +02:00
parent 1b98805383
commit 208c323649
+1 -1
View File
@@ -299,7 +299,7 @@ _user_get_timezone(int32 *_timezoneOffset, char *userName, size_t nameLength)
if (_timezoneOffset != NULL
&& (!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;
if (userName != NULL