From 58ed2c3fe035313bfc7feca7fd18abb84fa4fad1 Mon Sep 17 00:00:00 2001 From: reynaldo Date: Sat, 15 Jul 2006 16:03:12 +0000 Subject: marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19109 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_render.c') diff --git a/libass/ass_render.c b/libass/ass_render.c index 3dbc38359d..7339b02279 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -469,7 +469,7 @@ static void compute_string_bbox( text_info_t* info, FT_BBox *abbox ) { /** * \brief Check if starting part of (*p) matches sample. If true, shift p to the first symbol after the matching part. */ -static inline int mystrcmp(char** p, char* sample) { +static inline int mystrcmp(char** p, const char* sample) { int len = strlen(sample); if (strncmp(*p, sample, len) == 0) { (*p) += len; -- cgit v1.2.3