Skip to content

Commit

Permalink
Fixed issue 1133 - part2
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed May 1, 2015
1 parent 53eab2e commit 5e754af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions training/pango_font_info.cpp
Expand Up @@ -280,8 +280,9 @@ int PangoFontInfo::DropUncoveredChars(string* utf8_text) const {
++num_dropped_chars;
continue;
}
strncpy(out, it.utf8_data(), it.utf8_len());
out += it.utf8_len();
int it_utf8_len = it.utf8_len();
strncpy(out, it.utf8_data(), it_utf8_len);
out += it_utf8_len;
}
utf8_text->resize(out - utf8_text->c_str());
return num_dropped_chars;
Expand Down

0 comments on commit 5e754af

Please sign in to comment.