Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
61874bc6
Commit
61874bc6
authored
Sep 29, 2015
by
Joshua Haberman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #831 from haberman/ruby-tinyfix
A very small fix to silence some warnings.
parents
0e5686a7
14e2b4fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Gemfile.lock
ruby/Gemfile.lock
+4
-1
encode_decode.c
ruby/ext/google/protobuf_c/encode_decode.c
+3
-1
No files found.
ruby/Gemfile.lock
View file @
61874bc6
PATH
remote: .
specs:
google-protobuf (3.0.0.alpha.4)
google-protobuf (3.0.0.alpha.4
.0
)
GEM
remote: https://rubygems.org/
...
...
@@ -23,3 +23,6 @@ DEPENDENCIES
rake-compiler
rubygems-tasks
test-unit
BUNDLED WITH
1.10.6
ruby/ext/google/protobuf_c/encode_decode.c
View file @
61874bc6
...
...
@@ -35,11 +35,13 @@
// For more information, see:
// https://bugs.ruby-lang.org/issues/11328
VALUE
noleak_rb_str_cat
(
VALUE
rb_str
,
const
char
*
str
,
long
len
)
{
char
*
p
;
size_t
oldlen
=
RSTRING_LEN
(
rb_str
);
rb_str_modify_expand
(
rb_str
,
len
);
char
*
p
=
RSTRING_PTR
(
rb_str
);
p
=
RSTRING_PTR
(
rb_str
);
memcpy
(
p
+
oldlen
,
str
,
len
);
rb_str_set_len
(
rb_str
,
oldlen
+
len
);
return
rb_str
;
}
// -----------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment