Skip to content

Commit

Permalink
Merge branch 'master' into NSBrowser_bindings_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Jan 5, 2025
2 parents a3ebaf2 + a8018d6 commit 08163b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GSTheme.m
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,8 @@ - (id) initWithBundle: (NSBundle*)bundle
mth = [[GSThemeMethod new] autorelease];
types = method_getTypeEncoding(method);
mth->imp = method_getImplementation(method);
memcpy(buf, name + 9, (ptr - name) + 9);
buf[(ptr - name) + 9] = '\0';
memcpy(buf, name + 9, (ptr - name) - 9);
buf[(ptr - name) - 9] = '\0';
mth->cls = objc_lookUpClass(buf);
if (mth->cls == 0)
{
Expand Down

0 comments on commit 08163b4

Please sign in to comment.