summaryrefslogtreecommitdiff
path: root/vpath.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-07-21 05:53:23 +0000
committerPaul Smith <psmith@gnu.org>1999-07-21 05:53:23 +0000
commit588da9812e055fbceb900c350ab406f97eccbf37 (patch)
treecc291944695d7e922ac93c5ae293289349acd7d5 /vpath.c
parent73846549f62b832ca6ff761ad3640a86d3b32c86 (diff)
downloadgunmake-588da9812e055fbceb900c350ab406f97eccbf37.tar.gz
* Add configure option to enable dmalloc library.
* Various code cleanups.
Diffstat (limited to 'vpath.c')
-rw-r--r--vpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpath.c b/vpath.c
index 41cc317..62df2a6 100644
--- a/vpath.c
+++ b/vpath.c
@@ -169,7 +169,7 @@ construct_vpath_list (pattern, dirpath)
if (pattern != 0)
{
- pattern = savestring (pattern, strlen (pattern));
+ pattern = xstrdup (pattern);
percent = find_percent (pattern);
}
@@ -324,7 +324,7 @@ gpath_search (file, len)
if (gpaths && (len <= gpaths->maxlen))
for (gp = gpaths->searchpath; *gp != NULL; ++gp)
- if (!strncmp(*gp, file, len) && (*gp)[len] == '\0')
+ if (strneq (*gp, file, len) && (*gp)[len] == '\0')
return 1;
return 0;