OpenCPN/OpenCPN — pull request #233 by nkiesel (2014-12-22 17:43:31+00:00)
Title: use size_t; fixed misplaced offset increase

Got a compile warning due to `offset` being an `int` but comparing to results of `sizeof`. Also fixed a misplaced `offset` increase.