aboutsummaryrefslogtreecommitdiff
path: root/plugins/vdi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vdi.lua')
-rw-r--r--plugins/vdi.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/vdi.lua b/plugins/vdi.lua
index 6124e43..a35c139 100644
--- a/plugins/vdi.lua
+++ b/plugins/vdi.lua
@@ -16,6 +16,9 @@
--
local detect = function (c)
+ if #c < 68 then
+ return false
+ end
c.position = 65
return c:read (4) == "\x7F\x10\xDA\xBE"
end