Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
626cebb5
Commit
626cebb5
authored
Jun 10, 2014
by
Jonathan Jenkins
Browse files
Bump lp-io ID buffer to account for large modelnet io prefix
parent
7ffb0be3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/util/lp-io.c
View file @
626cebb5
...
@@ -20,7 +20,7 @@ struct io_buffer
...
@@ -20,7 +20,7 @@ struct io_buffer
struct
identifier
struct
identifier
{
{
char
identifier
[
32
];
char
identifier
[
64
];
struct
io_buffer
*
buffers
;
struct
io_buffer
*
buffers
;
int
buffers_count
;
int
buffers_count
;
int
buffers_total_size
;
int
buffers_total_size
;
...
@@ -42,7 +42,7 @@ int lp_io_write(tw_lpid gid, char* identifier, int size, void* buffer)
...
@@ -42,7 +42,7 @@ int lp_io_write(tw_lpid gid, char* identifier, int size, void* buffer)
struct
identifier
*
id
;
struct
identifier
*
id
;
struct
io_buffer
*
buf
;
struct
io_buffer
*
buf
;
if
(
strlen
(
identifier
)
>=
32
)
if
(
strlen
(
identifier
)
>=
64
)
{
{
fprintf
(
stderr
,
"Error: identifier %s too big.
\n
"
,
identifier
);
fprintf
(
stderr
,
"Error: identifier %s too big.
\n
"
,
identifier
);
return
(
-
1
);
return
(
-
1
);
...
...
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