From e778bfb42fd08e84dade642ea9d1ada3243b3dcd Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 17 Mar 2015 16:00:03 -0400 Subject: [PATCH] Changed INVALID_LENGTH to TOO_LONG. --- toxcore/tox.c | 2 +- toxcore/tox.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toxcore/tox.c b/toxcore/tox.c index 87b8e8dee..55711352a 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -979,7 +979,7 @@ uint32_t tox_file_send(Tox *tox, uint32_t friend_number, uint32_t kind, uint64_t return UINT32_MAX; case -2: - SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_NAME_INVALID_LENGTH); + SET_ERROR_PARAMETER(error, TOX_ERR_FILE_SEND_NAME_TOO_LONG); return UINT32_MAX; case -3: diff --git a/toxcore/tox.h b/toxcore/tox.h index ce5a5b561..0b9a63ba9 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -1628,7 +1628,7 @@ typedef enum TOX_ERR_FILE_SEND { /** * Filename length exceeded 255 bytes. */ - TOX_ERR_FILE_SEND_NAME_INVALID_LENGTH, + TOX_ERR_FILE_SEND_NAME_TOO_LONG, /** * Too many ongoing transfers. The maximum number of concurrent file transfers * is 256 per friend per direction (sending and receiving).