completely avoid usage of strnlen()

This commit is contained in:
Christian Kruse
2014-03-06 18:08:10 +01:00
parent d8b8bf0e2a
commit 164cf9d08f
4 changed files with 2 additions and 18 deletions

View File

@@ -1948,7 +1948,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
char host_string[MAXLEN];
int r;
if (strnlen(options.rsync_options, MAXLEN) == 0)
if (*options.rsync_options == '\0')
maxlen_snprintf(
rsync_flags, "%s",
"--archive --checksum --compress --progress --rsh=ssh");