2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 05:18:00 +00:00

bfd: timerfd -- Fix parsing typo

While been converting reading of data stream
to bfd the @buf member was left untouched leading
to incorrect data to be read, fix it setting up
proper one, ie @str itself, otherwise dumping
of timerfd files are failing.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2014-09-30 11:41:36 +04:00 committed by Pavel Emelyanov
parent 5eb39aad4d
commit c01efda8af

View File

@ -1102,7 +1102,7 @@ static int parse_timerfd(struct bfd *f, char *str, TimerfdEntry *tfy)
* it_value: (0, 49406829)
* it_interval: (1, 0)
*/
if (sscanf(buf, "clockid: %d", &tfy->clockid) != 1)
if (sscanf(str, "clockid: %d", &tfy->clockid) != 1)
goto parse_err;
str = breadline(f);