Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
82b0a595
Commit
82b0a595
authored
Sep 21, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in obfuscating darshan file record names
parent
dbefada8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
darshan-util/darshan-convert.c
darshan-util/darshan-convert.c
+3
-2
No files found.
darshan-util/darshan-convert.c
View file @
82b0a595
...
...
@@ -144,16 +144,17 @@ void obfuscate_filenames(int key, struct darshan_record_ref *rec_hash)
{
struct
darshan_record_ref
*
ref
,
*
tmp
;
uint32_t
hashed
;
char
tmp_string
[
32
]
;
char
tmp_string
[
128
]
=
{
0
}
;
HASH_ITER
(
hlink
,
rec_hash
,
ref
,
tmp
)
{
hashed
=
darshan_hashlittle
(
ref
->
rec
.
name
,
strlen
(
ref
->
rec
.
name
),
key
);
sprintf
(
tmp_string
,
"%u"
,
hashed
);
free
(
ref
->
rec
.
name
);
ref
->
rec
.
name
=
malloc
(
strlen
(
tmp_string
));
ref
->
rec
.
name
=
malloc
(
strlen
(
tmp_string
)
+
1
);
assert
(
ref
->
rec
.
name
);
memcpy
(
ref
->
rec
.
name
,
tmp_string
,
strlen
(
tmp_string
));
ref
->
rec
.
name
[
strlen
(
tmp_string
)]
=
'\0'
;
}
return
;
...
...
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