diff options
Diffstat (limited to 'Build/source/texk/kpathsea/fn.c')
-rw-r--r-- | Build/source/texk/kpathsea/fn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/kpathsea/fn.c b/Build/source/texk/kpathsea/fn.c index 3bfb468cb40..3464ced7722 100644 --- a/Build/source/texk/kpathsea/fn.c +++ b/Build/source/texk/kpathsea/fn.c @@ -30,10 +30,10 @@ fn_type fn_init (void) { fn_type ret; - + FN_ALLOCATED (ret) = FN_LENGTH (ret) = 0; FN_STRING (ret) = NULL; - + return ret; } @@ -42,14 +42,14 @@ fn_type fn_copy0 (const_string s, unsigned len) { fn_type ret; - + FN_ALLOCATED (ret) = CHUNK_SIZE > len ? CHUNK_SIZE : len + 1; FN_STRING (ret) = (string)xmalloc (FN_ALLOCATED (ret)); - + strncpy (FN_STRING (ret), s, len); FN_STRING (ret)[len] = 0; FN_LENGTH (ret) = len + 1; - + return ret; } |