aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/server.c b/example/server.c
index aba0667b..9f27906d 100644
--- a/example/server.c
+++ b/example/server.c
@@ -38,7 +38,7 @@ bool listdir_callback(pb_ostream_t *stream, const pb_field_t *field, const void
if (!pb_encode_tag_for_field(stream, field))
return false;
- if (!pb_enc_submessage(stream, field, &fileinfo))
+ if (!pb_encode_submessage(stream, FileInfo_fields, &fileinfo))
return false;
}