From 00633945b89332964330476f58987d538f2dd451 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 19 Apr 2005 11:48:05 +0000 Subject: [PATCH] Leave __cwd_buf_size intact git-svn-id: svn://svn.cc65.org/cc65/trunk@3467 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/_cwd.s | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libsrc/common/_cwd.s b/libsrc/common/_cwd.s index 19e1af703..a3ee362f6 100644 --- a/libsrc/common/_cwd.s +++ b/libsrc/common/_cwd.s @@ -8,23 +8,25 @@ ; .export __cwd + .export __cwd_buf_size .constructor cwd_init .import initcwd .include "stdio.inc" - + + __cwd_buf_size = FILENAME_MAX cwd_init := initcwd .bss -__cwd: .res FILENAME_MAX +__cwd: .res __cwd_buf_size ; NOTE: Some of the code working with directories is not able to handle ; strings longer than 255 chars, so don't make __cwd larger than 256 without ; checking the other sources. - .assert FILENAME_MAX < 256, error, "FILENAME_MAX must not be > 255" + .assert __cwd_buf_size < 256, error, "__cwd_buf_size must not be > 255"