diff options
-rw-r--r-- | toxcore/Messenger.c | 6 | ||||
-rw-r--r-- | toxcore/Messenger.h | 4 |
2 files changed, 5 insertions, 5 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 | */ |
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index ca99fa18..8e635afe 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -495,7 +495,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_ | |||
495 | void *userdata); | 495 | void *userdata); |
496 | 496 | ||
497 | /* Send a file send request. | 497 | /* Send a file send request. |
498 | * Maximum filename length is 256 bytes. | 498 | * Maximum filename length is 255 bytes. |
499 | * return 1 on success | 499 | * return 1 on success |
500 | * return 0 on failure | 500 | * return 0 on failure |
501 | */ | 501 | */ |
@@ -503,7 +503,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_ | |||
503 | uint16_t filename_length); | 503 | uint16_t filename_length); |
504 | 504 | ||
505 | /* Send a file send request. | 505 | /* Send a file send request. |
506 | * Maximum filename length is 256 bytes. | 506 | * Maximum filename length is 255 bytes. |
507 | * return file number on success | 507 | * return file number on success |
508 | * return -1 on failure | 508 | * return -1 on failure |
509 | */ | 509 | */ |