diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index b31e1c81..6035fcb7 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -970,10 +970,10 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_ | |||
970 | m->file_filedata_userdata = userdata; | 970 | m->file_filedata_userdata = userdata; |
971 | } | 971 | } |
972 | 972 | ||
973 | #define MAX_FILENAME_LENGTH 256 | 973 | #define MAX_FILENAME_LENGTH 255 |
974 | 974 | ||
975 | /* Send a file send request. | 975 | /* Send a file send request. |
976 | * Maximum filename length is 256 bytes. | 976 | * Maximum filename length is 255 bytes. |
977 | * return 1 on success | 977 | * return 1 on success |
978 | * return 0 on failure | 978 | * return 0 on failure |
979 | */ | 979 | */ |
@@ -997,7 +997,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_ | |||
997 | } | 997 | } |
998 | 998 | ||
999 | /* Send a file send request. | 999 | /* Send a file send request. |
1000 | * Maximum filename length is 256 bytes. | 1000 | * Maximum filename length is 255 bytes. |
1001 | * return file number on success | 1001 | * return file number on success |
1002 | * return -1 on failure | 1002 | * return -1 on failure |
1003 | */ | 1003 | */ |