We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported...
[asterisk/asterisk.git] / image.c
diff --git a/image.c b/image.c
index 2e039fc..9d8901a 100644 (file)
--- a/image.c
+++ b/image.c
@@ -103,9 +103,9 @@ static void make_filename(char *buf, int len, char *filename, const char *prefla
                        snprintf(buf, len, "%s.%s", filename, ext);
        } else {
                if (!ast_strlen_zero(preflang))
-                       snprintf(buf, len, "%s/%s/%s-%s.%s", ast_config_AST_VAR_DIR, "images", filename, preflang, ext);
+                       snprintf(buf, len, "%s/%s/%s-%s.%s", ast_config_AST_DATA_DIR, "images", filename, preflang, ext);
                else
-                       snprintf(buf, len, "%s/%s/%s.%s", ast_config_AST_VAR_DIR, "images", filename, ext);
+                       snprintf(buf, len, "%s/%s/%s.%s", ast_config_AST_DATA_DIR, "images", filename, ext);
        }
 }