Skip to content

Commit d45d37b

Browse files
committed
Really fix...
1 parent 83da0b3 commit d45d37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rex/zip/archive.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def add_file(fname, fdata=nil, xtra=nil, comment=nil)
3737
if (st.directory?)
3838
attrs = EFA_ISDIR
3939
fdata = ''
40-
unless fdata[-1] == '/'
41-
fdata << '/'
40+
unless fname[-1] == '/'
41+
fname << '/'
4242
end
4343
else
4444
f = File.open(fname, 'rb')

0 commit comments

Comments
 (0)