Skip to content

Commit

Permalink
Use correct printf specifier for argument
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed Aug 11, 2022
1 parent e118f83 commit c5a5c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spi00in.c
Expand Up @@ -36,7 +36,7 @@ EXPORT(int) GetPluginInfoW(int info_number, LPWSTR buffer, int buffer_length)
return 0;
}

int ret = _snwprintf(buffer, buffer_length, L"%s", plugin_info[info_number]);
int ret = _snwprintf(buffer, buffer_length, L"%hs", plugin_info[info_number]);
if (ret > buffer_length)
{
ret = buffer_length;
Expand Down

0 comments on commit c5a5c9c

Please sign in to comment.