aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-14 19:22:02 +0100
committerBert <ber.t@gmx.com>2011-02-14 19:22:02 +0100
commitcfed65d36fbacf6bec47869c86ea94f1cc49bcb5 (patch)
treebf826ba12cb739f45c4ac61f9e6c1e6f4bbc6362
parent788db666be26ace453fc312a78f86cb6ea3f7dac (diff)
downloadnsxiv-cfed65d36fbacf6bec47869c86ea94f1cc49bcb5.tar.zst
More appropriate buffer sizes
-rw-r--r--main.c2
-rw-r--r--util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 225861a..46f2cf6 100644
--- a/main.c
+++ b/main.c
@@ -41,7 +41,7 @@ img_t img;
win_t win;
#define DNAME_CNT 512
-#define FNAME_CNT 4096
+#define FNAME_CNT 1024
const char **filenames;
int filecnt, fileidx;
size_t filesize;
diff --git a/util.c b/util.c
index c23d821..82ab057 100644
--- a/util.c
+++ b/util.c
@@ -22,7 +22,7 @@
#include "options.h"
#include "util.h"
-#define FNAME_LEN 10
+#define FNAME_LEN 512
void cleanup();