diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2017-08-30 05:35:00 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2017-08-30 05:35:00 +0000 |
commit | 393f15ebb52f333071ef3f2880b3f92995f96333 (patch) | |
tree | d4bf82ad46a69598b9708dc2393cc8a432c73365 /Build/source/utils/t1utils/TLpatches/patch-07-warnings | |
parent | 4d58309c4ddb4a7028a925071630626b464345dd (diff) |
t1utils: Try not to use system memmem
git-svn-id: svn://tug.org/texlive/trunk@45170 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/t1utils/TLpatches/patch-07-warnings')
-rw-r--r-- | Build/source/utils/t1utils/TLpatches/patch-07-warnings | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Build/source/utils/t1utils/TLpatches/patch-07-warnings b/Build/source/utils/t1utils/TLpatches/patch-07-warnings index 931af1db983..0d5bbf7fb4f 100644 --- a/Build/source/utils/t1utils/TLpatches/patch-07-warnings +++ b/Build/source/utils/t1utils/TLpatches/patch-07-warnings @@ -2,8 +2,8 @@ diff -ur t1utils-1.41.orig/t1asmhelp.h t1utils-1.41/t1asmhelp.h --- t1utils-1.41.orig/t1asmhelp.h Thu Aug 17 00:20:27 2017 -+++ t1utils-1.41/t1asmhelp.h Mon Aug 28 14:30:14 2017 -@@ -26,7 +26,8 @@ ++++ t1utils-1.41/t1asmhelp.h Wed Aug 30 13:42:34 2017 +@@ -26,7 +28,8 @@ } @@ -13,7 +13,14 @@ diff -ur t1utils-1.41.orig/t1asmhelp.h t1utils-1.41/t1asmhelp.h static void set_cs_start(const char* line, size_t line_len) -@@ -43,7 +44,7 @@ +@@ -37,13 +40,13 @@ + if ((p = memmem(line, line_len, "string currentfile", 18)) + && memmem(line, line_len, "readstring", 10)) { + /* locate the name of the charstring start command */ +- for (q = p; q != line && q[-1] != '/'; --q) ++ for (q = p; q != line && *(q-1) != '/'; --q) + /* nada */; + if (q != line) { for (r = q; r != p && !isspace((unsigned char) *r) && *r != '{'; ++r) /* nada */; if (cs_start_set) |