summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-10-28 22:23:28 +0100
committerBert Münnich <ber.t@posteo.de>2015-10-28 22:23:28 +0100
commitb096cbd536b94ee848b94d873d0c0a898f574af1 (patch)
tree776542a33ac01cec20ec7d05ac36797affa449c7 /main.c
parent9a7e97cd89b307ecc0cd2f304919b576cb5704d1 (diff)
downloadnsxiv-b096cbd536b94ee848b94d873d0c0a898f574af1.tar.zst
Removed unnecessary buffer size constants
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/main.c b/main.c
index 96ea947..f0f2e89 100644
--- a/main.c
+++ b/main.c
@@ -42,11 +42,6 @@
#define _MAPPINGS_CONFIG
#include "config.h"
-enum {
- FILENAME_CNT = 1024,
- TITLE_LEN = 256
-};
-
typedef struct {
const char *name;
char *cmd;
@@ -348,7 +343,7 @@ void bar_put(win_bar_t *bar, const char *fmt, ...)
void update_info(void)
{
unsigned int i, fn, fw;
- char title[TITLE_LEN];
+ char title[256];
const char * mark;
bool ow_info;
win_bar_t *l = &win.bar.l, *r = &win.bar.r;
@@ -801,7 +796,7 @@ int main(int argc, char **argv)
}
if (options->recursive || options->from_stdin)
- filecnt = FILENAME_CNT;
+ filecnt = 1024;
else
filecnt = options->filecnt;