Skip to content

Commit

Permalink
Merge PR #1309 (RSS App: fix bug in selftest) into max-next
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed May 15, 2018
2 parents c8a1ff7 + 39d2f12 commit 8459e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/rss/rss.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function selftest ()
local addr_ip = ffi.new("uint8_t[4]")
local addr_ip6 = ffi.new("uint8_t[16]")
local function random_ip(addr)
for i = 1, ffi.sizeof(addr) do
for i = 0, ffi.sizeof(addr) - 1 do
addr[i] = math.random(255)
end
return addr
Expand Down

0 comments on commit 8459e21

Please sign in to comment.