summaryrefslogtreecommitdiffstats
path: root/compare
diff options
context:
space:
mode:
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>2020-10-30 16:19:51 +0100
committerOleg Oshmyan <chortos@inbox.lv>2020-11-01 00:45:04 +0100
commitc65b2f8fa81182ee6a36912d33b4929347335e9e (patch)
treed15a6154a896d792a4962c9d8422ce9e10aa07bf /compare
parent8ea09d0f618cee9d90dec4459da1e3f38d1fd6a4 (diff)
downloadlibass-c65b2f8fa81182ee6a36912d33b4929347335e9e.tar.bz2
libass-c65b2f8fa81182ee6a36912d33b4929347335e9e.tar.xz
ass_library: Constify ass_add_font
Both parameters are copied and are immutable. Make it clear through the function prototype
Diffstat (limited to 'compare')
-rw-r--r--compare/compare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compare/compare.c b/compare/compare.c
index 3e71ba2..4639827 100644
--- a/compare/compare.c
+++ b/compare/compare.c
@@ -271,7 +271,7 @@ static bool load_font(ASS_Library *lib, const char *dir, const char *file)
fclose(fp);
printf("Loading font '%s'.\n", file);
- ass_add_font(lib, (char *) file, buf, size);
+ ass_add_font(lib, file, buf, size);
free(buf);
return true;
}