Fix GCC warnings

This commit is contained in:
Sebastian Krzyszkowiak 2018-06-30 01:50:29 +02:00
parent 4cf74ec0f3
commit 93859232d9

View file

@ -66,7 +66,7 @@ SYMBOL_EXPORT int DrawWrappedText(ALLEGRO_FONT* font, ALLEGRO_COLOR color, float
int height = al_get_font_line_height(font) + 1;
// Setup our strings
strncpy(stext, text, 1024);
strncpy(stext, text, 1023);
strncpy(temp, "", 1024);
for (int i = 0; i < 40; i += 1) {
strncpy(lines[i], "", 1024);