Skip to content

Commit 7468112

Browse files
committed
Fix an off-by-one issue
1 parent 3cc8731 commit 7468112

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/monodroid/jni/embedded-assemblies.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ namespace xamarin::android::internal {
334334
template<bool IsSatelliteAssembly>
335335
static constexpr size_t get_mangled_data_size ()
336336
{
337-
return SharedConstants::MANGLED_ASSEMBLY_REGULAR_ASSEMBLY_MARKER.size () + get_mangled_prefix_length<IsSatelliteAssembly> ();
337+
return SharedConstants::MANGLED_ASSEMBLY_REGULAR_ASSEMBLY_MARKER.size () +
338+
get_mangled_prefix_length<IsSatelliteAssembly> () +
339+
1; // For the extra `-` char in the culture portion of satellite assembly's name;
338340
}
339341

340342
template<bool IsSatelliteAssembly>

0 commit comments

Comments
 (0)