Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
0ec56b7a
Commit
0ec56b7a
authored
Nov 16, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in new QCString::sprintf for long string.
parent
d13908f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
qcstring.cpp
qtools/qcstring.cpp
+3
-2
diagram.cpp
src/diagram.cpp
+1
-1
No files found.
qtools/qcstring.cpp
View file @
0ec56b7a
...
@@ -29,8 +29,9 @@ QCString &QCString::sprintf( const char *format, ... )
...
@@ -29,8 +29,9 @@ QCString &QCString::sprintf( const char *format, ... )
va_list
ap
;
va_list
ap
;
va_start
(
ap
,
format
);
va_start
(
ap
,
format
);
const
int
minlen
=
256
;
const
int
minlen
=
256
;
if
(
length
()
<
minlen
)
resize
(
minlen
);
int
l
=
length
();
vsnprintf
(
data
(),
minlen
,
format
,
ap
);
if
(
l
<
minlen
)
{
resize
(
minlen
);
l
=
minlen
;
}
int
n
=
vsnprintf
(
data
(),
l
,
format
,
ap
);
resize
(
qstrlen
(
data
())
+
1
);
resize
(
qstrlen
(
data
())
+
1
);
va_end
(
ap
);
va_end
(
ap
);
return
*
this
;
return
*
this
;
...
...
src/diagram.cpp
View file @
0ec56b7a
...
@@ -1337,7 +1337,7 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path,
...
@@ -1337,7 +1337,7 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path,
QCString
epstopdfArgs
(
4096
);
QCString
epstopdfArgs
(
4096
);
epstopdfArgs
.
sprintf
(
"
\"
%s.eps
\"
--outfile=
\"
%s.pdf
\"
"
,
epstopdfArgs
.
sprintf
(
"
\"
%s.eps
\"
--outfile=
\"
%s.pdf
\"
"
,
epsBaseName
.
data
(),
epsBaseName
.
data
());
epsBaseName
.
data
(),
epsBaseName
.
data
());
//printf("Converting eps using `%s'\n",epstopdf
Cmd
.data());
//printf("Converting eps using `%s'\n",epstopdf
Args
.data());
portable_sysTimerStart
();
portable_sysTimerStart
();
if
(
portable_system
(
"epstopdf"
,
epstopdfArgs
)
!=
0
)
if
(
portable_system
(
"epstopdf"
,
epstopdfArgs
)
!=
0
)
{
{
...
...
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