Re: [hackers] [sbase][PATCH] libutil/unescape.c: ensure \0 termination if short

From: Laslo Hunhold <dev_AT_frign.de>
Date: Fri, 24 Mar 2017 10:46:43 +0100

On Thu, 23 Mar 2017 11:29:15 -0700
Antoine Kaufmann <antoinek_AT_cs.washington.edu> wrote:

Hey Antoine,

> 30fd43d caused '\n' to turn into '<LF>n'. For me this broke tr '\n' '
> '. The underlying problem is that unescape is no longer writing a
> terminating \0 byte if the unescaped string is shorter.

thanks for your patch! An identical version was already sent to this
list on 2017-03-07 and pushed a few minutes ago.

With best regards

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Fri Mar 24 2017 - 10:46:43 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 24 2017 - 10:48:33 CET