Max length of filenames is now 255 bytes.

This commit is contained in:
irungentoo 2013-10-02 10:28:08 -04:00
parent 2467e6d592
commit 0fb3c9eeed
2 changed files with 5 additions and 5 deletions

View File

@ -970,10 +970,10 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_
m->file_filedata_userdata = userdata;
}
#define MAX_FILENAME_LENGTH 256
#define MAX_FILENAME_LENGTH 255
/* Send a file send request.
* Maximum filename length is 256 bytes.
* Maximum filename length is 255 bytes.
* return 1 on success
* return 0 on failure
*/
@ -997,7 +997,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
}
/* Send a file send request.
* Maximum filename length is 256 bytes.
* Maximum filename length is 255 bytes.
* return file number on success
* return -1 on failure
*/

View File

@ -495,7 +495,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_
void *userdata);
/* Send a file send request.
* Maximum filename length is 256 bytes.
* Maximum filename length is 255 bytes.
* return 1 on success
* return 0 on failure
*/
@ -503,7 +503,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
uint16_t filename_length);
/* Send a file send request.
* Maximum filename length is 256 bytes.
* Maximum filename length is 255 bytes.
* return file number on success
* return -1 on failure
*/