Hi Werner,

patch is very welcome…

Thanks,
Alex


> Am 19.07.2018 um 14:19 schrieb Werner Coetzee <werner.coet...@clickatell.com>:
> 
> 
> Hi all
>  
> I believe there's a bug in octstr_shrink_blanks() in gwlib/octstr.c
>  
> It does not shrink 2 whitespaces into 1, only when there's more than 2.
> The issue is with the line "if (j - i > 1)", it should test for > 0
>  
> It's very easy to write a small test binary to see that it doesn't work.
> After fixing it in my local repo it's working correctly (for 1, 2, 3+ 
> consecutive spaces).
>  
> Regards
> Werner Coetzee
>  
> 
> 
> Werner Coetzee
> Senior Message Engine Engineer
> 
> Tel:+27219107878
> Email: werner.coet...@clickatell.com <mailto:werner.coet...@clickatell.com>
> 
> 
> <image56bcaa.JPG> <https://www.clickatell.com/>
> 
> 
> Note: This disclaimer 
> <https://www.clickatell.com/legal/general-terms-notices/privacy-notice/> 
> applies to this email and its attachments
> 

Reply via email to