Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/csync
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2015-04-13 15:58:25 +0300
committerMarkus Goetz <markus@woboq.com>2015-04-13 15:58:25 +0300
commitfa80a006b85cf1274ef700eaf2e7e5b0fc4947c2 (patch)
treea784938e26887bc7d00e63e8e2fd952cfc22dbd4 /csync
parent9d88ef543282c63d89bf9d17bba674e0968f650e (diff)
CSync: Log if file_id is too long
Diffstat (limited to 'csync')
-rw-r--r--csync/src/vio/csync_vio_file_stat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/csync/src/vio/csync_vio_file_stat.c b/csync/src/vio/csync_vio_file_stat.c
index ffbd102fc..7b640159b 100644
--- a/csync/src/vio/csync_vio_file_stat.c
+++ b/csync/src/vio/csync_vio_file_stat.c
@@ -20,6 +20,7 @@
#include "c_lib.h"
#include "csync.h"
+#include "csync_log.h"
csync_vio_file_stat_t *csync_vio_file_stat_new(void) {
csync_vio_file_stat_t *file_stat = (csync_vio_file_stat_t *) c_malloc(sizeof(csync_vio_file_stat_t));
@@ -70,6 +71,7 @@ void csync_vio_file_stat_set_file_id( csync_vio_file_stat_t *dst, const char* sr
void csync_vio_set_file_id( char* dst, const char *src ) {
if( src && dst ) {
if( strlen(src) > FILE_ID_BUF_SIZE ) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "Ignoring file_id because it is too long: %s", src);
strcpy(dst, "");
} else {
strcpy(dst, src);