summaryrefslogtreecommitdiff
path: root/apps/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/talk.c')
-rw-r--r--apps/talk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/talk.c b/apps/talk.c
index 9fd6fb06ec..0211bcc1f8 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -41,6 +41,7 @@
41#include "logf.h" 41#include "logf.h"
42#include "bitswap.h" 42#include "bitswap.h"
43#include "structec.h" 43#include "structec.h"
44#include "plugin.h" /* plugin_get_buffer() */
44#include "debug.h" 45#include "debug.h"
45 46
46 47
@@ -290,7 +291,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
290 }; 291 };
291 union voicebuf voicebuf; 292 union voicebuf voicebuf;
292 293
293 int load_size, alloc_size; 294 size_t load_size, alloc_size;
294 int got_size; 295 int got_size;
295#ifndef TALK_PARTIAL_LOAD 296#ifndef TALK_PARTIAL_LOAD
296 size_t file_size; 297 size_t file_size;
@@ -396,7 +397,7 @@ static void load_voicefile(bool probe, char* buf, size_t bufsize)
396#ifdef TALK_PARTIAL_LOAD 397#ifdef TALK_PARTIAL_LOAD
397 alloc_size += silence_len + QUEUE_SIZE; 398 alloc_size += silence_len + QUEUE_SIZE;
398#endif 399#endif
399 if ((size_t)alloc_size > bufsize) 400 if (alloc_size > bufsize)
400 goto load_err; 401 goto load_err;
401 return; 402 return;
402 403