On Sat, Aug 3, 2013 at 8:11 PM, Bram Moolenaar <[email protected]> wrote:
> + /* Change NUL into SOH, otherwise the string is truncated. */
> + for (i = 0; i < len; ++i)
> + if (buffer[len] == NUL)
> + buffer[len] = 1;
The loop above doesn't look right to. Shouldn't it be like this instead?:
for (i = 0; i < len; ++i)
if (buffer[i] == NUL)
buffer[i] = 1;
nazri
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.