Diff between 2f21e1a7d030d5e309e63ae134aac3610dfda3e3 and a2c4a45e285c8d3d6b13b9cddffe866307a4926a

Changed Files

File Additions Deletions Status
obexd/src/ftp.c +2 -2 modified

Full Patch

diff --git a/obexd/src/ftp.c b/obexd/src/ftp.c
index e4e75c0..416f7b5 100644
--- a/obexd/src/ftp.c
+++ b/obexd/src/ftp.c
@@ -76,10 +76,10 @@
 static gchar *file_stat_line(gchar *filename, struct stat *fstat,
 				struct stat *dstat)
 {
-	gchar perm[50], atime[17], ctime[17], mtime[17];
+	gchar perm[51], atime[17], ctime[17], mtime[17];
 	gchar *escaped, *ret;
 
-	snprintf(perm, 49, "user-perm=\"%s%s%s\" group-perm=\"%s%s%s\" "
+	snprintf(perm, 50, "user-perm=\"%s%s%s\" group-perm=\"%s%s%s\" "
 			"other-perm=\"%s%s%s\"",
 			(fstat->st_mode & S_IRUSR ? "R" : ""),
 			(fstat->st_mode & S_IWUSR ? "W" : ""),