]> Savannah Git Hosting - m4.git/commitdiff

Savannah Git Hosting - m4.git/commitdiff

git git@sv / m4.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bef10cc)
libm4: spell TRUNCATE_FILENAME consistently.
2014年12月12日 12:56:12 +0000 (12:56 +0000)
2014年12月12日 12:56:12 +0000 (12:56 +0000)
* m4/path.c (m4_path_search): s/FILE_TRUNCATE/TRUNCATE_FILENAME/
to match definition.
Reported by KO Myung-Hun

Signed-off-by: Gary V. Vaughan <gary@gnu.org>

diff --git a/m4/path.c b/m4/path.c
index e2816cfa33c6810961a441ca9528d07ce728ad84..ef743a3cb00b4df78a917a794e944190cc21a4a5 100644 (file)
--- a/m4/path.c
+++ b/m4/path.c
@@ -225,7 +225,7 @@ m4_path_search (m4 *context, const char *filename, const char **suffixes)
/* Try appending each of the suffixes we were given. */
filepath = strncpy (xmalloc (mem + max_suffix_len +1), filename, mem +1);
-#if FILE_TRUNCATE
+#if TRUNCATE_FILENAME
filepath = path_truncate (filepath);
mem = strlen (filepath); /* recalculate length after truncation */
#endif
@@ -271,7 +271,7 @@ m4_path_search (m4 *context, const char *filename, const char **suffixes)
filepath = strncpy (xmalloc (mem + max_suffix_len +1), pathname, mem +1);
free (pathname);
-#if FILE_TRUNCATE
+#if TRUNCATE_FILENAME
filepath = path_truncate (filepath);
mem = strlen (filepath); /* recalculate length after truncation */
#endif
GNU M4 source repository
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /