aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'image.c')
-rwxr-xr-ximage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.c b/image.c
index 61eefde13..33f49def3 100755
--- a/image.c
+++ b/image.c
@@ -114,7 +114,7 @@ struct ast_frame *ast_read_image(char *filename, char *preflang, int format)
i = list;
while(!found && i) {
if (i->format & format) {
- strncpy(tmp, i->exts, sizeof(tmp));
+ strncpy(tmp, i->exts, sizeof(tmp)-1);
e = strtok(tmp, "|");
while(e) {
make_filename(buf, sizeof(buf), filename, preflang, e);