On Wed, 24 Dec 2008 18:17:19 +0100 (CET) Tamas TEVESZ <[email protected]> wrote:
> On Wed, 24 Dec 2008, Gilbert wrote: > > > This change is also already in current. Maybe you should download > > the latest snapshot so you can check if a change is already been > > incorporated: wget > > http://hg.windowmaker.info/wmaker/archive/default.tar.gz will get > > you the latest snapshot. > > it's not in there, and it's not in whatever i'm left with after doing > an "hg clone http://hg.windowmaker.info/wmaker/". > > as of three and a half minutes ago: > > $ wget -q http://hg.windowmaker.info/wmaker/archive/default.tar.gz > $ md5sum default.tar.gz > 972fe3b9bd858a3ca224976e007fd20b default.tar.gz > $ tar xzf default.tar.gz > $ fgrep -A2 -B2 'snprintf(buf, len' Window-Maker-default/src/misc.c > len = (msg ? strlen(msg) : 0) + (workspace >=0 ? 4 : 0) + 1 ; > buffer = wmalloc(len+5); > snprintf(buf, len, "%4i", len); > memcpy(buffer, buf, 4); > buffer[4] = type; > $ hg clone http://hg.windowmaker.info/wmaker/ > destination directory: wmaker > requesting all changes > adding changesets > adding manifests > adding file changes > added 1614 changesets with 10215 changes to 1080 files (+4 heads) > updating working directory > 777 files updated, 0 files merged, 0 files removed, 0 files unresolved > $ find wmaker -type f | xargs cat | md5sum > 229372474438f386b95757f398171a08 - > $ fgrep -A2 -B2 'snprintf(buf, len' wmaker/src/misc.c > len = (msg ? strlen(msg) : 0) + (workspace >=0 ? 4 : 0) + 1 ; > buffer = wmalloc(len+5); > snprintf(buf, len, "%4i", len); > memcpy(buffer, buf, 4); > buffer[4] = type; > $ > > if that's not the bleeding edge stuff, where exactly is it then? > > -- > [-] > > mkdir /nonexistent > > > -- > To unsubscribe, send mail to [email protected]. That's strange, I pulled the default tarball a couple of days ago and here it is: Starting at line 1092: void SendHelperMessage(WScreen *scr, char type, int workspace, char *msg) { char *buffer; int len; int i; char buf[16]; if (!scr->flags.backimage_helper_launched) { return; } len = (msg ? strlen(msg) : 0) + (workspace >=0 ? 4 : 0) + 1 ; buffer = wmalloc(len+5); snprintf(buf, len, "%4i", len); memcpy(buffer, buf, 4); buffer[4] = type; i = 5; if (workspace >= 0) { snprintf(buf, sizeof(buf), "%4i", workspace); memcpy(&buffer[i], buf, 4); i += 4; buffer[i] = 0; } if (msg) strcpy(&buffer[i], msg); Gilbert -- To unsubscribe, send mail to [email protected].
