diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-05-15 13:35:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 13:35:52 +0200 |
commit | 4fd0e11214293ebdd7751bd2181b0e7399a80ed6 (patch) | |
tree | 8082310fd3b6c15e8f76fadfc14a41c5b1d3d64a /passes/cmds/cover.cc | |
parent | 64b604207deefb87faa1aaf158012b7063526c6f (diff) | |
parent | 5e443a5d0db8f517582818e756871ec2e8117dbe (diff) | |
download | yosys-4fd0e11214293ebdd7751bd2181b0e7399a80ed6.tar.gz yosys-4fd0e11214293ebdd7751bd2181b0e7399a80ed6.tar.bz2 yosys-4fd0e11214293ebdd7751bd2181b0e7399a80ed6.zip |
Merge pull request #1011 from hzeller/fix-constructing-string-from-int
Fix two instances of integer-assignment to string.
Diffstat (limited to 'passes/cmds/cover.cc')
-rw-r--r-- | passes/cmds/cover.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/passes/cmds/cover.cc b/passes/cmds/cover.cc index 0ec747671..721ebded4 100644 --- a/passes/cmds/cover.cc +++ b/passes/cmds/cover.cc @@ -105,7 +105,8 @@ struct CoverPass : public Pass { #else char filename_buffer[4096]; snprintf(filename_buffer, 4096, "%s/yosys_cover_%d_XXXXXX.txt", filename.c_str(), getpid()); - filename = mkstemps(filename_buffer, 4); + mkstemps(filename_buffer, 4); + filename = filename_buffer; #endif } FILE *f = fopen(filename.c_str(), open_mode); |