DragonFly BSD
DragonFly commits List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Mon, 24 Jan 2005 18:34:32 +0900

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 
>                          var_modify.c 
>   Log:
>   - 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.

	[snip]

> http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/var_modify.c.diff?r1=1.15&r2=1.16&f=u

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);
     }



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]