Skip to content

Commit 0f6a3de

Browse files
committed
Apply suggestion based on reviewer comments.
1 parent 8639274 commit 0f6a3de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base/applications/cmdutils/reg/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static WCHAR *hex_data_state(struct parser *parser, WCHAR *pos)
788788
(parser->parse_type == REG_BINARY))
789789
{
790790
memcpy(Buffer, pos, 18);
791-
Buffer[9] = UNICODE_NULL;
791+
Buffer[_countof(Buffer) - 1] = UNICODE_NULL;
792792
ret = wcsstr(Buffer, L"00,"); // Any UNICODE characters?
793793
unicode_in_ansi = (ret != NULL);
794794
}

0 commit comments

Comments
 (0)