Software /
code /
prosody
Comparison
util/datamanager.lua @ 5057:1e44678b5de2
util.datamanager: Add missing mode flag to seek call
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 Jul 2012 08:23:55 +0200 |
parent | 5051:71253db26fda |
child | 5065:acfaf771f10e |
child | 5066:4be7093edde9 |
comparison
equal
deleted
inserted
replaced
5056:a125daa42ad4 | 5057:1e44678b5de2 |
---|---|
41 local fake_data = (" "):rep(len); | 41 local fake_data = (" "):rep(len); |
42 local ok, msg = f:write(fake_data); | 42 local ok, msg = f:write(fake_data); |
43 if not ok then | 43 if not ok then |
44 return ok, msg; | 44 return ok, msg; |
45 end | 45 end |
46 f:seek(offset); | 46 f:seek("set", offset); |
47 return true; | 47 return true; |
48 end | 48 end |
49 end | 49 end |
50 | 50 |
51 module "datamanager" | 51 module "datamanager" |