Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alfredo Di Napoli
GHC
Commits
b0beadab
Commit
b0beadab
authored
Feb 03, 2010
by
benl@cse.unsw.edu.au
Browse files
Stifle warning about printf format strings
parent
b482880d
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Hpc.c
View file @
b0beadab
...
...
@@ -200,7 +200,7 @@ static void hpc_init(void) {
/* Then, try open the file
*/
tixFilename
=
(
char
*
)
malloc
(
strlen
(
hpc_tixdir
)
+
strlen
(
prog_name
)
+
12
);
sprintf
(
tixFilename
,
"%s/%s-%d.tix"
,
hpc_tixdir
,
prog_name
,
hpc_pid
);
sprintf
(
tixFilename
,
"%s/%s-%d.tix"
,
hpc_tixdir
,
prog_name
,
(
int
)
hpc_pid
);
}
else
{
tixFilename
=
(
char
*
)
malloc
(
strlen
(
prog_name
)
+
6
);
sprintf
(
tixFilename
,
"%s.tix"
,
prog_name
);
...
...
Write
Preview
Supports
Markdown
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