Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
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
gflags
Commits
cce68f0c
Commit
cce68f0c
authored
Oct 05, 2016
by
David Lam
Committed by
Andreas Schuh
Oct 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error messages to not truncate to 255 characters (#175)
parent
f4eace13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
gflags.cc
src/gflags.cc
+1
-3
No files found.
src/gflags.cc
View file @
cce68f0c
...
...
@@ -171,12 +171,10 @@ enum DieWhenReporting { DIE, DO_NOT_DIE };
// Report Error and exit if requested.
static
void
ReportError
(
DieWhenReporting
should_die
,
const
char
*
format
,
...)
{
char
error_message
[
255
];
va_list
ap
;
va_start
(
ap
,
format
);
v
snprintf
(
error_message
,
sizeof
(
error_message
)
,
format
,
ap
);
v
fprintf
(
stderr
,
format
,
ap
);
va_end
(
ap
);
fprintf
(
stderr
,
"%s"
,
error_message
);
fflush
(
stderr
);
// should be unnecessary, but cygwin's rxvt buffers stderr
if
(
should_die
==
DIE
)
gflags_exitfunc
(
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