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).