mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Max length of filenames is now 255 bytes.
This commit is contained in:
parent
2467e6d592
commit
0fb3c9eeed
|
@ -970,10 +970,10 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_
|
||||||
m->file_filedata_userdata = userdata;
|
m->file_filedata_userdata = userdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAX_FILENAME_LENGTH 256
|
#define MAX_FILENAME_LENGTH 255
|
||||||
|
|
||||||
/* Send a file send request.
|
/* Send a file send request.
|
||||||
* Maximum filename length is 256 bytes.
|
* Maximum filename length is 255 bytes.
|
||||||
* return 1 on success
|
* return 1 on success
|
||||||
* return 0 on failure
|
* return 0 on failure
|
||||||
*/
|
*/
|
||||||
|
@ -997,7 +997,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send a file send request.
|
/* Send a file send request.
|
||||||
* Maximum filename length is 256 bytes.
|
* Maximum filename length is 255 bytes.
|
||||||
* return file number on success
|
* return file number on success
|
||||||
* return -1 on failure
|
* return -1 on failure
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -495,7 +495,7 @@ void callback_file_data(Messenger *m, void (*function)(Messenger *m, int, uint8_
|
||||||
void *userdata);
|
void *userdata);
|
||||||
|
|
||||||
/* Send a file send request.
|
/* Send a file send request.
|
||||||
* Maximum filename length is 256 bytes.
|
* Maximum filename length is 255 bytes.
|
||||||
* return 1 on success
|
* return 1 on success
|
||||||
* return 0 on failure
|
* return 0 on failure
|
||||||
*/
|
*/
|
||||||
|
@ -503,7 +503,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
|
||||||
uint16_t filename_length);
|
uint16_t filename_length);
|
||||||
|
|
||||||
/* Send a file send request.
|
/* Send a file send request.
|
||||||
* Maximum filename length is 256 bytes.
|
* Maximum filename length is 255 bytes.
|
||||||
* return file number on success
|
* return file number on success
|
||||||
* return -1 on failure
|
* return -1 on failure
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user