Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
Fixed wchar_t viewing when sizeof (wchar_t) differs between plugin an…
Browse files Browse the repository at this point in the history
…d app.

Was using wrong variable in a loop.
  • Loading branch information
icculus committed Aug 7, 2008
1 parent 83e2bcb commit 3a008ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataplugin_tests/wchar_t/viewwchar.c
Expand Up @@ -22,7 +22,7 @@ static void view_wchar_t_##bits(const void *ptr, const GDB_dataplugin_funcs *fun
len++; \
wchar_t *cvt = funcs->allocmem(sizeof (wchar_t) * (len+1)); \
for (i = 0; i < len; i++) \
cvt[i] = (wchar_t) str[len]; \
cvt[i] = (wchar_t) str[i]; \
cvt[i] = '\0'; \
funcs->print("(wchar_t *) L\"%ls\"\n", cvt); \
funcs->freemem(cvt); \
Expand Down

0 comments on commit 3a008ec

Please sign in to comment.