diff options
Diffstat (limited to 'upb')
-rw-r--r-- | upb/descriptor/reader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/upb/descriptor/reader.c b/upb/descriptor/reader.c index 106d4a7..af3f83d 100644 --- a/upb/descriptor/reader.c +++ b/upb/descriptor/reader.c @@ -246,9 +246,10 @@ static size_t file_onphpprefix(void *closure, const void *hd, const char *buf, UPB_UNUSED(handle); prefix = upb_gstrndup(buf, n); - ok = upb_filedef_setpackage(r->file, prefix, NULL); + ok = upb_filedef_setphpprefix(r->file, prefix, NULL); + upb_gfree(prefix); UPB_ASSERT(ok); - return true; + return n; } static size_t file_onsyntax(void *closure, const void *hd, const char *buf, |