Commit b2ee9d8b authored by Jonathan Beck's avatar Jonathan Beck

Merge master into fixes.

parent ae11cc81
......@@ -715,9 +715,9 @@ int afc_write_file(AFClient *client, AFCFile *file, const char *data, int length
if (!client ||!client->afc_packet || !client->connection || !file) return -1;
afc_lock(client);
if (debug) fprintf(stderr, "afc_write_file: Write length: %i\n", length);
// Divide the file into segments.
for (i = 0; i < segments; i++) {
// Send the segment
......
......@@ -49,7 +49,7 @@ char* format_string(const char* buf, int cols, int depth)
int i = 0;
int j = 0;
assert(cols > 0);
assert(cols >= 0);
assert(depth >= 0);
// Inserts new lines and tabs at appropriate locations
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment