Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
045feda8
Commit
045feda8
authored
Mar 02, 2022
by
Rob Swindell
💬
Browse files
Invalid type in printf format specifier
CID 319135
parent
049916bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/js_com.c
src/sbbs3/js_com.c
+2
-2
No files found.
src/sbbs3/js_com.c
View file @
045feda8
...
...
@@ -241,11 +241,11 @@ js_sendfile(JSContext *cx, uintN argc, jsval *arglist)
close
(
file
);
if
(
comWriteBuf
(
p
->
com
,(
uint8_t
*
)
buf
,(
size_t
)
len
)
==
len
)
{
dbprintf
(
FALSE
,
p
,
"sent %
u
bytes"
,
len
);
dbprintf
(
FALSE
,
p
,
"sent %
ld
bytes"
,
len
);
JS_SET_RVAL
(
cx
,
arglist
,
JSVAL_TRUE
);
}
else
{
p
->
last_error
=
COM_ERROR_VALUE
;
dbprintf
(
TRUE
,
p
,
"send of %
u
bytes failed"
,
len
);
dbprintf
(
TRUE
,
p
,
"send of %
ld
bytes failed"
,
len
);
}
free
(
buf
);
...
...
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