Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158304
b: refs/heads/master
c: 6f4596d
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Sep 3, 2009
1 parent 0809c0f commit 09f3b2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 00fc97863c21c41e257a941e83410c56341e2a5d
refs/heads/master: 6f4596d9312ba5fbf5f3231ef484823c4e684d2e
5 changes: 4 additions & 1 deletion trunk/tools/perf/util/trace-event-read.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ static char *read_string(void)
}
}

/* trailing \0: */
i++;

/* move the file descriptor to the end of the string */
r = lseek(input_fd, -(r - (i+1)), SEEK_CUR);
r = lseek(input_fd, -(r - i), SEEK_CUR);
if (r < 0)
die("lseek");

Expand Down

0 comments on commit 09f3b2b

Please sign in to comment.