summaryrefslogtreecommitdiff
path: root/remake.c
diff options
context:
space:
mode:
Diffstat (limited to 'remake.c')
-rw-r--r--remake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remake.c b/remake.c
index 4604ea5..b8b5c7f 100644
--- a/remake.c
+++ b/remake.c
@@ -1208,7 +1208,7 @@ library_search (lib, mtime_ptr)
int save = warn_undefined_variables_flag;
warn_undefined_variables_flag = 0;
- libpatterns = strdup (variable_expand ("$(strip $(.LIBPATTERNS))"));
+ libpatterns = xstrdup (variable_expand ("$(strip $(.LIBPATTERNS))"));
warn_undefined_variables_flag = save;
}
@@ -1249,7 +1249,7 @@ library_search (lib, mtime_ptr)
mtime = name_mtime (libbuf);
if (mtime != (FILE_TIMESTAMP) -1)
{
- *lib = strdup (libbuf);
+ *lib = xstrdup (libbuf);
if (mtime_ptr != 0)
*mtime_ptr = mtime;
return 1;
@@ -1289,7 +1289,7 @@ library_search (lib, mtime_ptr)
mtime = name_mtime (buf);
if (mtime != (FILE_TIMESTAMP) -1)
{
- *lib = strdup (buf);
+ *lib = xstrdup (buf);
if (mtime_ptr != 0)
*mtime_ptr = mtime;
return 1;