blob: 8aaade9f7d42ea303e78ddeafdb013b3472b03e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ab,v 1.2 2012/01/11 19:55:56 hans Exp $
--- src/mp3-scanner.c.orig 2006-12-06 16:35:37.000000000 +0000
+++ src/mp3-scanner.c
@@ -378,7 +378,7 @@ int scan_init(char *path) {
*/
int scan_path(char *path) {
DIR *current_dir;
- char de[sizeof(struct dirent) + MAXNAMLEN + 1]; /* overcommit for solaris */
+ char de[sizeof(struct dirent) + FILENAME_MAX + 1]; /* overcommit for solaris */
struct dirent *pde;
int err;
char mp3_path[PATH_MAX];
|