summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/make/var_modify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/var_modify.c b/usr.bin/make/var_modify.c
index ef4257c..06a9cbf 100644
--- a/usr.bin/make/var_modify.c
+++ b/usr.bin/make/var_modify.c
@@ -78,7 +78,7 @@ VarHead (const char *word, Boolean addSpace, Buffer buf, void *dummy __unused)
Buf_AddByte (buf, (Byte)' ');
}
*slash = '\0';
- Buf_AddBytes (buf, strlen (word), (Byte *)word);
+ Buf_AddBytes (buf, strlen (buffer), (Byte *)buffer);
free(buffer);
return (TRUE);
} else {
OpenPOWER on IntegriCloud