projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117422a
)
(dir_name): Compute append_dot using path, not newpath
author
Jim Meyering
<jim@meyering.net>
Mon, 21 May 2001 06:36:36 +0000
(06:36 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 21 May 2001 06:36:36 +0000
(06:36 +0000)
which is not yet declared.
lib/dirname.c
patch
|
blob
|
history
diff --git
a/lib/dirname.c
b/lib/dirname.c
index 109eccc2c427218d9ee81b2398cea376aa9f17f4..9fb5f09374d1ce1c232e5ad18263cfbe763954a2 100644
(file)
--- a/
lib/dirname.c
+++ b/
lib/dirname.c
@@
-53,7
+53,7
@@
char *
dir_name (char const *path)
{
size_t length = dir_len (path);
- int append_dot = (length == FILESYSTEM_PREFIX_LEN (
new
path));
+ int append_dot = (length == FILESYSTEM_PREFIX_LEN (path));
char *newpath = xmalloc (length + append_dot + 1);
memcpy (newpath, path, length);
if (append_dot)