[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Wed Nov 23 14:15:12 MST 2011


The branch, master has been updated
       via  89e049a Another asprintf() return-value-check tweak.
      from  036094d Committing missed manpage tweak.

;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 89e049ad7f710bdf7fb884e396e3331d0c8afe0d
Author: Wayne Davison <wayned at samba.org>
Date:   Wed Nov 23 13:14:35 2011 -0800

    Another asprintf() return-value-check tweak.

-----------------------------------------------------------------------

Summary of changes:
 clientserver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/clientserver.c b/clientserver.c
index d63aa96..2294bb0 100644
--- a/clientserver.c
+++ b/clientserver.c
@@ -759,7 +759,7 @@ static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
 							break;
 						_exit(1);
 					}
-					if (asprintf(&p, "RSYNC_ARG%d=%s", j, buf) > 0)
+					if (asprintf(&p, "RSYNC_ARG%d=%s", j, buf) >= 0)
 						putenv(p);
 				}
 				close(pre_exec_arg_fd);


-- 
The rsync repository.


More information about the rsync-cvs mailing list