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

看板DFBSD_commit作者時間21年前 (2005/01/26 02:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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); }
文章代碼(AID): #11zedq00 (DFBSD_commit)
文章代碼(AID): #11zedq00 (DFBSD_commit)