Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
728b2b2a
Commit
728b2b2a
authored
Jun 08, 2013
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: allocation of conf_buf arg of calloc was wrong
Signed-off-by:
Aurelio Colosimo
<
aurelio@aureliocolosimo.it
>
parent
12aa6332
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
unix-startup.c
arch-unix/unix-startup.c
+1
-1
wrs-startup.c
arch-wrs/wrs-startup.c
+1
-1
No files found.
arch-unix/unix-startup.c
View file @
728b2b2a
...
...
@@ -56,7 +56,7 @@ int main(int argc, char **argv)
}
else
{
int
r
=
0
,
next_r
;
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
)
+
1
;
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
+
1
)
;
do
{
next_r
=
conf_fs
.
st_size
-
r
;
...
...
arch-wrs/wrs-startup.c
View file @
728b2b2a
...
...
@@ -72,7 +72,7 @@ int main(int argc, char **argv)
}
else
{
int
r
=
0
,
next_r
;
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
)
+
1
;
conf_buf
=
calloc
(
1
,
conf_fs
.
st_size
+
1
)
;
do
{
next_r
=
conf_fs
.
st_size
-
r
;
...
...
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