Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vim
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Someone-Else
Vim
Commits
3f5f795f
Commit
3f5f795f
authored
13 years ago
by
Bram Moolenaar
Browse files
Options
Downloads
Patches
Plain Diff
updated for version 7.3.267
Problem: Ruby on Mac OS X 10.7 may crash. Solution: Avoid alloc(0). (Bjorn Winckler)
parent
673214bb
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/if_ruby.c
+13
-5
13 additions, 5 deletions
src/if_ruby.c
src/version.c
+2
-0
2 additions, 0 deletions
src/version.c
with
15 additions
and
5 deletions
src/if_ruby.c
+
13
−
5
View file @
3f5f795f
...
...
@@ -761,11 +761,19 @@ static VALUE vim_message(VALUE self UNUSED, VALUE str)
char
*
buff
,
*
p
;
str
=
rb_obj_as_string
(
str
);
buff
=
ALLOCA_N
(
char
,
RSTRING_LEN
(
str
));
strcpy
(
buff
,
RSTRING_PTR
(
str
));
p
=
strchr
(
buff
,
'\n'
);
if
(
p
)
*
p
=
'\0'
;
MSG
(
buff
);
if
(
RSTRING_LEN
(
str
)
>
0
)
{
/* Only do this when the string isn't empty, alloc(0) causes trouble. */
buff
=
ALLOCA_N
(
char
,
RSTRING_LEN
(
str
));
strcpy
(
buff
,
RSTRING_PTR
(
str
));
p
=
strchr
(
buff
,
'\n'
);
if
(
p
)
*
p
=
'\0'
;
MSG
(
buff
);
}
else
{
MSG
(
""
);
}
return
Qnil
;
}
...
...
This diff is collapsed.
Click to expand it.
src/version.c
+
2
−
0
View file @
3f5f795f
...
...
@@ -709,6 +709,8 @@ static char *(features[]) =
static
int
included_patches
[]
=
{
/* Add new patch number below this line */
/**/
267
,
/**/
266
,
/**/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment