summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-03-26 12:08:10 +0000
committerJim Meyering <jim@meyering.net>2006-03-26 12:08:10 +0000
commitb828255717a1e12fb85f926789382874a1773c7a (patch)
treed43f6e4fce3941f8d36c20319849cfa991f1ff3e /src
parentd4d9a40b8277d288d6f13317f975f0ee704f11a7 (diff)
downloadcoreutils-b828255717a1e12fb85f926789382874a1773c7a.tar.xz
(next_file_name): Use new last_component, in place of base_name.
Diffstat (limited to 'src')
-rw-r--r--src/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index 7c357c8ef..1ecb6b39c 100644
--- a/src/split.c
+++ b/src/split.c
@@ -1,5 +1,5 @@
/* split.c -- split a file into pieces.
- Copyright (C) 88, 91, 1995-2005 Free Software Foundation, Inc.
+ Copyright (C) 1988, 1991, 1995-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -171,7 +171,7 @@ next_file_name (void)
{
char *dir = dir_name (outfile);
long name_max = pathconf (dir, _PC_NAME_MAX);
- if (0 <= name_max && name_max < base_len (base_name (outfile)))
+ if (0 <= name_max && name_max < base_len (last_component (outfile)))
error (EXIT_FAILURE, ENAMETOOLONG, "%s", outfile);
free (dir);
}