Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 6a7279c

Browse files
authored
Merge pull request #63 from kazumi007/fix-print_gstr2
Fix print gstr crash
2 parents ae9e014 + 70e1d52 commit 6a7279c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/meta_strace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ print_gstr(gstr_t str, int maxlen)
2929
{
3030
fprintf(strace_sink, "\"");
3131
for (int i = 0; i < maxlen; i++) {
32-
char c = *((char*)guest_to_host(str) + i);
32+
char c = *((char*)guest_to_host(str + i));
3333
if (c == '\0') {
3434
break;
3535
} else if (c == '\n') {

0 commit comments

Comments
 (0)