From b828255717a1e12fb85f926789382874a1773c7a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 26 Mar 2006 12:08:10 +0000 Subject: (next_file_name): Use new last_component, in place of base_name. --- src/split.c | 4 ++-- 1 file 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); } -- cgit v1.2.3-70-g09d2