From eb0666356ad010478dc51f32dfdef09f256721cf Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Jul 2019 16:06:03 -0400 Subject: text_new(): Increment through string --- (limited to 'src') diff --git a/src/text.c b/src/text.c index 7c395e3..d418f57 100644 --- a/src/text.c +++ b/src/text.c @@ -60,8 +60,10 @@ text_new(const char *string) text->width = MAX(text->width, width); width = 0; ++text->height; + ++string; } else { ++width; + ++string; } } -- cgit v0.9.1