mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-08 13:30:03 -05:00
topology: remove MAX_FILE definition and use correct PATH_MAX
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
ebf5213cd6
commit
fbe1ac4a09
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
struct snd_soc_tplg_private *priv = NULL;
|
||||||
const char *value = NULL;
|
const char *value = NULL;
|
||||||
char filename[MAX_FILE];
|
char filename[PATH_MAX];
|
||||||
char *env = getenv(ALSA_CONFIG_TPLG_VAR);
|
char *env = getenv(ALSA_CONFIG_TPLG_VAR);
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
size_t size, bytes_read;
|
size_t size, bytes_read;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
#define tplg_dbg(fmt, arg...) do { } while (0)
|
#define tplg_dbg(fmt, arg...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_FILE 256
|
|
||||||
#define TPLG_MAX_PRIV_SIZE (1024 * 128)
|
#define TPLG_MAX_PRIV_SIZE (1024 * 128)
|
||||||
|
|
||||||
/** The name of the environment variable containing the tplg directory */
|
/** The name of the environment variable containing the tplg directory */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue