Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: hist: remove wrong NULL terminator



On Jan 9, 2015, at 1:33 PM, Lawrence Velázquez <vq@xxxxxxxxx> wrote:

>    % git blame -L 2179,+6 Src/hist.c(git:master)
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2179)      *rptr++ = *ptr;
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2180)     *rptr++ = '\'';
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2181)     *rptr++ = 0;
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2182)     str[1] = NULL;
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2183)     return 0;
>    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2184) }
>    % git show --shortstat e74702b4(git:master)
>    commit e74702b467171dbdafb56dfe354794a212e020d9
>    Author: Tanaka Akira <akr@xxxxxxxxxxxxxxxxxxxxx>
>    Date:   Thu Apr 15 18:05:38 1999 +0000
> 
>        Initial revision
> 
>     354 files changed, 66043 insertions(+)

Badly-edited paste. In the interests of correctness:

    % git blame -L 2179,+6 Src/hist.c
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2179)      *rptr++ = *ptr;
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2180)     *rptr++ = '\'';
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2181)     *rptr++ = 0;
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2182)     str[1] = NULL;
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2183)     return 0;
    e74702b4 (Tanaka Akira 1999-04-15 18:05:38 +0000 2184) }
    % git show --shortstat e74702b4
    commit e74702b467171dbdafb56dfe354794a212e020d9
    Author: Tanaka Akira <akr@xxxxxxxxxxxxxxxxxxxxx>
    Date:   Thu Apr 15 18:05:38 1999 +0000

        Initial revision

     354 files changed, 66043 insertions(+)

vq


Messages sorted by: Reverse Date, Date, Thread, Author