Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
0b981daa
Commit
0b981daa
authored
Feb 17, 2020
by
Patrick José Pereira
Browse files
comm: Move from deprecated sprintf to asprintf
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
6418619e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/comm/TCPLink.cc
View file @
0b981daa
...
...
@@ -57,7 +57,7 @@ void TCPLink::_writeDebugBytes(const QByteArray data)
for
(
int
i
=
0
,
size
=
data
.
size
();
i
<
size
;
i
++
)
{
unsigned
char
v
=
data
[
i
];
bytes
.
append
(
QString
().
sprintf
(
"%02x "
,
v
));
bytes
.
append
(
QString
::
a
sprintf
(
"%02x "
,
v
));
if
(
data
[
i
]
>
31
&&
data
[
i
]
<
127
)
{
ascii
.
append
(
data
[
i
]);
...
...
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