Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/gen



On Mon, Sep 08, 2014 at 12:42:09PM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date:         Mon Sep  8 16:42:09 UTC 2014
> 
> Modified Files:
>       src/lib/libc/gen: vis.c
> 
> Log Message:
> PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully.
> (don't abuse 0 to mean compute string length internally)

As I wrote in the PR, I think it would be better to have an internal
flag. To go even further, why do we need this special case at all?
Can't the wrappers like strvis(3) just do the strlen call before calling
istrsenvisx?

Joerg


Home | Main Index | Thread Index | Old Index