use numeric_limits in draw_marker

This commit is contained in:
Simon Gomizelj 2012-09-17 19:14:22 -04:00
parent 63432759ba
commit f7b534784f
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ static void launch_url(unsigned id) {
}
static void draw_marker(cairo_t *cr, const char *font, long x, long y, int padding, unsigned id) {
char buffer[3];
char buffer[std::numeric_limits<unsigned>::digits10 + 1];
cairo_text_extents_t ext;
cairo_select_font_face(cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);