summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AFC.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 15d746e..956c8fc 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -1157,7 +1157,7 @@ afc_error_t afc_file_truncate(afc_client_t client, uint64_t handle, uint64_t new
1157 * @return AFC_E_SUCCESS if everything went well, AFC_E_INVALID_ARGUMENT 1157 * @return AFC_E_SUCCESS if everything went well, AFC_E_INVALID_ARGUMENT
1158 * if arguments are NULL or invalid, AFC_E_NOT_ENOUGH_DATA otherwise. 1158 * if arguments are NULL or invalid, AFC_E_NOT_ENOUGH_DATA otherwise.
1159 */ 1159 */
1160afc_error_t afc_truncate(afc_client_t client, const char *path, off_t newsize) 1160afc_error_t afc_truncate(afc_client_t client, const char *path, uint64_t newsize)
1161{ 1161{
1162 char *response = NULL; 1162 char *response = NULL;
1163 char *send = (char *) malloc(sizeof(char) * (strlen(path) + 1 + 8)); 1163 char *send = (char *) malloc(sizeof(char) * (strlen(path) + 1 + 8));