Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jakob Luettgau
darshan
Commits
a94832b3
Commit
a94832b3
authored
Aug 19, 2015
by
Shane Snyder
Browse files
byte swap bug fix for reading the record hash
parent
a850ea74
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-logutils.c
View file @
a94832b3
...
...
@@ -619,7 +619,6 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
path_len_ptr
=
(
uint32_t
*
)
buf_ptr
;
buf_ptr
+=
sizeof
(
uint32_t
);
path_ptr
=
(
char
*
)
buf_ptr
;
buf_ptr
+=
*
path_len_ptr
;
if
(
fd
->
swap_flag
)
{
...
...
@@ -653,6 +652,8 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
/* add this record to the hash */
HASH_ADD
(
hlink
,
*
hash
,
rec
.
id
,
sizeof
(
darshan_record_id
),
ref
);
}
buf_ptr
+=
*
path_len_ptr
;
}
free
(
hash_buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment