summaryrefslogtreecommitdiff
path: root/Build/source/texk/lcdf-typetools/liblcdf/error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/lcdf-typetools/liblcdf/error.cc')
-rw-r--r--Build/source/texk/lcdf-typetools/liblcdf/error.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/Build/source/texk/lcdf-typetools/liblcdf/error.cc b/Build/source/texk/lcdf-typetools/liblcdf/error.cc
index 03b1e27269c..54339c8a4a6 100644
--- a/Build/source/texk/lcdf-typetools/liblcdf/error.cc
+++ b/Build/source/texk/lcdf-typetools/liblcdf/error.cc
@@ -486,14 +486,8 @@ ErrorHandler::vxformat(int default_flags, const char *s, va_list val)
int len;
if (precision < 0)
len = strlen(s1);
- else {
-#if HAVE_STRNLEN
+ else
len = strnlen(s1, precision);
-#else
- for (len = 0; len < precision && s1[len] != 0; ++len)
- /* do nothing */;
-#endif
- }
// transform string if alternate form
if (flags & cf_alternate_form) {