summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/AFC.c4
-rw-r--r--src/plist.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/AFC.c b/src/AFC.c
index 67d14f9..06e9952 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -715,9 +715,9 @@ int afc_write_file(AFClient *client, AFCFile *file, const char *data, int length
715 if (!client ||!client->afc_packet || !client->connection || !file) return -1; 715 if (!client ||!client->afc_packet || !client->connection || !file) return -1;
716 716
717 afc_lock(client); 717 afc_lock(client);
718 718
719 if (debug) fprintf(stderr, "afc_write_file: Write length: %i\n", length); 719 if (debug) fprintf(stderr, "afc_write_file: Write length: %i\n", length);
720 720
721 // Divide the file into segments. 721 // Divide the file into segments.
722 for (i = 0; i < segments; i++) { 722 for (i = 0; i < segments; i++) {
723 // Send the segment 723 // Send the segment
diff --git a/src/plist.c b/src/plist.c
index ed09354..e64cff2 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -49,7 +49,7 @@ char* format_string(const char* buf, int cols, int depth)
49 int i = 0; 49 int i = 0;
50 int j = 0; 50 int j = 0;
51 51
52 assert(cols > 0); 52 assert(cols >= 0);
53 assert(depth >= 0); 53 assert(depth >= 0);
54 54
55 // Inserts new lines and tabs at appropriate locations 55 // Inserts new lines and tabs at appropriate locations