Nazri Ramliy wrote: > 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; >
"This code is so simple it doesn't need a test". I need more coffee... -- Light travels faster than sound. This is why some people appear bright until you hear them speak /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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.
