SID0: flatten before pack

This commit is contained in:
Denis Knauf 2010-04-01 14:07:52 +02:00
parent 975769e03d
commit f370dcf52d

View file

@ -38,7 +38,7 @@ module LogAn
file = @@config[ :files][ sid]
next unless file
# command, SID, (inode, seek), file
pc = [1, sid, @@store[ :seeks][ sid], file].pack 'nNNNa*'
pc = [1, sid, @@store[ :seeks][ sid], file].flatten.pack 'nNNNa*'
sock.write [pc.length, pc].pack( 'Na*')
end
end