aboutsummaryrefslogtreecommitdiffstats
path: root/src/configuration.h
diff options
context:
space:
mode:
authorJason Woodward2004-09-30 13:13:08 +0000
committerJason Woodward2004-09-30 13:13:08 +0000
commit62b86f71a98bd88892d848f39f14225e8e2198b0 (patch)
treedafd4c7a04362c5aa0863d09b8474288742a923d /src/configuration.h
parentd76e7e0ef15748c165df2dc198f135512c4c7d8f (diff)
downloadslapt-get-62b86f71a98bd88892d848f39f14225e8e2198b0.tar.gz
added WORKINGDIR_TOKEN_LEN back in, used it instead of hardcoding working_dir element of _configuration struct
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 66fbdf0..52d8f66 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -18,6 +18,7 @@
#define SOURCE_TOKEN "SOURCE="
#define WORKINGDIR_TOKEN "WORKINGDIR="
+#define WORKINGDIR_TOKEN_LEN 256
#define EXCLUDE_TOKEN "EXCLUDE="
#define MAX_SOURCES 20
#define MAX_SOURCE_URL_LEN 400
@@ -34,7 +35,7 @@ struct source_list {
struct _configuration {
struct source_list sources;
- char working_dir[256];
+ char working_dir[WORKINGDIR_TOKEN_LEN];
int download_only;
int dist_upgrade;
int simulate;