Go ahead and make this write unconditional. Making it conditional is more work
authorRussell Bryant <russell@russellbryant.com>
Wed, 29 Nov 2006 17:37:31 +0000 (17:37 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 29 Nov 2006 17:37:31 +0000 (17:37 +0000)
commiteaf98f31e828225da0a68af514c0756f4f481f71
tree7ff7922f2fcbefb50dede73f1b2ce95bebb16ac6
parentd44b349211a8c8834617f68035a13f5f471902c3
Go ahead and make this write unconditional.  Making it conditional is more work
in both the append and non-append modes.  Also, always truncating the partial
write makes the behavior of the function more consistent, where in any type of
write, no partial result is left in the buffer.

Thanks for the feedback, luigi

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/utils.c