Re: [dev] [sbase] [patch] Add strings(1)

From: sin <sin_AT_2f30.org>
Date: Wed, 14 Aug 2013 20:57:16 +0300

On Wed, Aug 14, 2013 at 06:40:01PM +0400, Alexander Sedov wrote:
> 2013/8/14 sin <sin_AT_2f30.org>:
> > Hi,
> >
> > Added a barebones strings(1) implementation. Let me know
> > if you guys want this.
> >
> > Thanks,
> > sin
> Aren't you printf() ing non-null-terminated string? This can explode.

Em no, it is using %.*s but it will be clearer if I null terminate
and then print.
Received on Wed Aug 14 2013 - 19:57:16 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 14 2013 - 20:00:08 CEST