summaryrefslogtreecommitdiff
path: root/source/luametatex/source/libraries/hnj/hnjhyphen.c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-11-14 23:18:10 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-11-14 23:18:10 +0100
commit08473f11287cb263079c0435068312cbc6d736e8 (patch)
tree2548fb8b58e18a507e54fa8426a79c6956c3ef2e /source/luametatex/source/libraries/hnj/hnjhyphen.c
parentdd0a80e5ec42f60832e7d5dc47210e6f3545c400 (diff)
downloadcontext-08473f11287cb263079c0435068312cbc6d736e8.tar.gz
2022-11-14 22:56:00
Diffstat (limited to 'source/luametatex/source/libraries/hnj/hnjhyphen.c')
-rw-r--r--source/luametatex/source/libraries/hnj/hnjhyphen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/luametatex/source/libraries/hnj/hnjhyphen.c b/source/luametatex/source/libraries/hnj/hnjhyphen.c
index ad9d87683..cde68cb93 100644
--- a/source/luametatex/source/libraries/hnj/hnjhyphen.c
+++ b/source/luametatex/source/libraries/hnj/hnjhyphen.c
@@ -552,7 +552,7 @@ void hnj_dictionary_load(hjn_dictionary *dict, const unsigned char *f, int trace
char *newpat_pat = lookup_pattern(dict->merged, word, l1);
if (! newpat_pat) {
char *neworg;
- unsigned char *newword = (unsigned char *) hnj_malloc((size_t) (l1 + 1));
+ unsigned char *newword = (unsigned char *) hnj_malloc(l1 + 1);
int e1 = 0;
strncpy((char *) newword, (char *) word, (size_t) l1);
newword[l1] = 0;
@@ -561,7 +561,7 @@ void hnj_dictionary_load(hjn_dictionary *dict, const unsigned char *f, int trace
e1++;
}
}
- neworg = hnj_malloc((size_t) (l1 + 2 - e1));
+ neworg = hnj_malloc(l1 + 2 - e1);
/*tex Fill with right amount of zeros: */
sprintf(neworg, "%0*d", l1 + 1 - e1, 0);
insert_pattern(dict->merged, newword, combine_patterns(neworg, subpat_pat), trace);