Skip to content

Commit

Permalink
Fix bug: Formatting error of the file list sent.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Feb 6, 2018
1 parent 373c577 commit 2cb78bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void send_filelist(struct uwsc_client *cl, const char *sid, const char *p

tbl = blobmsg_open_table(&b, "");
blobmsg_add_string(&b, "name", "..");
blobmsg_add_string(&b, "type", "dir");
blobmsg_add_u8(&b, "dir", 1);
blobmsg_close_table(&b, tbl);

while((dentry = readdir(dir))) {
Expand Down

0 comments on commit 2cb78bf

Please sign in to comment.