]> git.alsa-project.org Git - alsa-lib.git/commitdiff
topology: remove MAX_FILE definition and use correct PATH_MAX
authorJaroslav Kysela <perex@perex.cz>
Wed, 15 Jan 2020 09:41:35 +0000 (10:41 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 15 Jan 2020 09:41:35 +0000 (10:41 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/data.c
src/topology/tplg_local.h

index b63e98cd7282f083d76ab44df460dcff08807947..5742b35773f64cf6980c1addbe1783d7f697547b 100644 (file)
@@ -163,7 +163,7 @@ static int tplg_parse_data_file(snd_config_t *cfg, struct tplg_elem *elem)
 {
        struct snd_soc_tplg_private *priv = NULL;
        const char *value = NULL;
-       char filename[MAX_FILE];
+       char filename[PATH_MAX];
        char *env = getenv(ALSA_CONFIG_TPLG_VAR);
        FILE *fp;
        size_t size, bytes_read;
index e061db755ed24d4ebce571c9102a9a5c56652dee..5ace0d1919e1fa233fa4d5b6187dbc3d6c49a497 100644 (file)
@@ -29,7 +29,6 @@
 #define tplg_dbg(fmt, arg...) do { } while (0)
 #endif
 
-#define MAX_FILE               256
 #define TPLG_MAX_PRIV_SIZE     (1024 * 128)
 
 /** The name of the environment variable containing the tplg directory */