summaryrefslogtreecommitdiffstats
path: root/libril/RilSapSocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libril/RilSapSocket.cpp')
-rw-r--r--libril/RilSapSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libril/RilSapSocket.cpp b/libril/RilSapSocket.cpp
index d98971c..94d9894 100644
--- a/libril/RilSapSocket.cpp
+++ b/libril/RilSapSocket.cpp
@@ -250,7 +250,7 @@ void log_hex(const char *who, const uint8_t *buffer, int length) {
int per_line = 0;
do {
- dest += sprintf(out, "%8.8s [%8.8x] ", who, source);
+ dest += snprintf(out, sizeof(out), "%8.8s [%8.8x] ", who, source);
for(; source < length && dest_len - dest > 3 && per_line < BYTES_PER_LINE; source++,
per_line ++) {
out[dest++] = HEX_HIGH(buffer[source]);