ZyX wrote: > ԕÂДÁ, 8 ԅϔ҂ӑ 2012šÇ., 17:00:45 UTC+4 я͘ۏՅ͘ Bram Moolenaar ρщԁÌ: > > It might be easier to use vim_strncpy(). And vim_strcat() where > > appropriate. These always add a NUL and check the size of the buffer. > > It is not needed: the following fixes garbage without using alloc_clear:
Thanks. I'll look into it this week. -- If "R" is Reverse, how come "D" is FORWARD? /// 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
