OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251b47e
)
scotest: Use correct buffer size
author
Andrei Emeltchenko
<andrei.emeltchenko@intel.com>
Mon, 13 Jan 2014 16:34:45 +0000
(18:34 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 14 Jan 2014 11:25:21 +0000
(13:25 +0200)
tools/scotest.c
patch
|
blob
|
history
diff --git
a/tools/scotest.c
b/tools/scotest.c
index
69150b1
..
227287d
100644
(file)
--- a/
tools/scotest.c
+++ b/
tools/scotest.c
@@
-255,7
+255,7
@@
static void dump_mode(int sk)
strerror(errno), errno);
if (defer_setup) {
- len = read(sk, buf,
sizeof(buf)
);
+ len = read(sk, buf,
data_size
);
if (len < 0)
syslog(LOG_ERR, "Initial read error: %s (%d)",
strerror(errno), errno);
@@
-283,7
+283,7
@@
static void recv_mode(int sk)
strerror(errno), errno);
if (defer_setup) {
- len = read(sk, buf,
sizeof(buf)
);
+ len = read(sk, buf,
data_size
);
if (len < 0)
syslog(LOG_ERR, "Initial read error: %s (%d)",
strerror(errno), errno);