From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from felloff.net ([94.135.152.80]) by ttr; Sat Feb 1 04:38:35 EST 2014 Message-ID: <99bc96c20c5164febf6392a52579a9a9@felloff.net> List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: virtualized virtual cache hardware HTML core API CMS interface Date: Sat, 1 Feb 2014 10:38:30 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] ip/torrent and private trackers In-Reply-To: <20140201042800.GA28628@iota.offblast.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit pid is a horrible name for this. why do you not just initialize peerid at the beginning to -NF9001- and when the argument gets parsed, insert the string. so theres no need for temprary pid variable. note, your code is broken right now. you use memmove, but the string might be shorter than 8 chars. you want to use strncpy or snprint or something here. -- cinap