Fix tempfile use - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 8998c901ea6c9a70a9510fd5469ac2393ab024b5
(DIR) parent 4e04b3f0d5dc3a8523a214c97bf94e38eab94c60
(HTM) Author: HD Moore <hd_moore@rapid7.com>
Date: Thu, 6 Oct 2011 19:04:55 +0000
Fix tempfile use
Diffstat:
M lib/warvox/jobs/analysis.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/lib/warvox/jobs/analysis.rb b/lib/warvox/jobs/analysis.rb
@@ -110,7 +110,7 @@ class Analysis < Base
tmp = Tempfile.new("Analysis")
begin
- ::File.open(tmp, "wb") do |fd|
+ ::File.open(tmp.path, "wb") do |fd|
fd.write(r.audio)
end