commit | cb41c2e83b9e9997b9737d7061d53f7c11a463a8 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Mon Nov 22 07:41:00 1999 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Mon Nov 22 07:41:00 1999 +0000 |
tree | 9fed0b9a9a44389618c13d8094b26224355d3108 | |
parent | 5d44d1fda593248c154ec68b38ce946a69f9b0fc [diff] [blame] |
Bug fixes
diff --git a/utility.c b/utility.c index 004864a..011c0cf 100644 --- a/utility.c +++ b/utility.c
@@ -481,14 +481,8 @@ char *cpOld; char buf[NAME_MAX]; - strcpy (buf, name); - if (buf[strlen(buf)]!='/') { - buf[strlen(buf)] = '/'; - buf[strlen(buf)+1] = '\0'; - } - + strcpy( buf, name); cp = strchr (buf, '/'); - while (cp) { cpOld = cp; cp = strchr (cp + 1, '/');