Skip to content

Commit

Permalink
[c] Fix Atlas line length calculation, closes EsotericSoftware#1925
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jul 23, 2021
1 parent 2824e22 commit 620b926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.19)
cmake_minimum_required(VERSION 3.17)
project(spine)

if(MSVC)
Expand Down
2 changes: 1 addition & 1 deletion spine-c/spine-c/src/spine/Atlas.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static SimpleString *ai_readLine(AtlasInput *self) {
self->line.end = self->index;
if (self->index != self->end) self->index++;
self->line = *ss_trim(&self->line);
self->line.length = self->end - self->start;
self->line.length = self->line.end - self->line.start;
return &self->line;
}

Expand Down

0 comments on commit 620b926

Please sign in to comment.