cvs commit: src/usr.bin/make buf.c buf.h for.c str.c var.c var_modify.c

Max Okumoto okumoto at
Mon Jan 24 01:57:34 PST 2005

YONETANI Tomokazu wrote:
On Sun, Jan 23, 2005 at 09:13:58PM -0800, Max Okumoto wrote:

okumoto     2005/01/23 21:13:58 PST

DragonFly src repository

 Modified files:
   usr.bin/make         buf.c buf.h for.c str.c var.c 
 - New function Buf_AppendRange(), which is given a pointer to a string and
   a pointer to the end of the range to append to the Buffer object.


Are you sure the chunk below is a correct change?

@@ -180,7 +180,7 @@ VarRoot(const char *word, Boolean addSpa

     dot = strrchr(word, '.');
     if (dot != NULL) {
-       Buf_AddBytes(buf, dot - word, (const Byte *)word);
+       Buf_AddBytes(buf, word, dot);
     } else {
        Buf_Append(buf, word);
Thanks, that must have slipped by when I split the patch into
smaller chunks.

More information about the Commits mailing list