summaryrefslogtreecommitdiffstats
path: root/innbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 14:24:56 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 14:24:56 +0800
commitfa5b233767ca9d4e012839c28eb13628d2ebba63 (patch)
treeb9f02d70672704dc7ea5726bc2d7e982c4d75dd9 /innbbsd
parentf1803b4bcb86f3362dda2feba438056363faeed5 (diff)
downloadpttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.gz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.bz2
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.lz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.xz
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.tar.zst
pttbbs-fa5b233767ca9d4e012839c28eb13628d2ebba63.zip
Automake is a hard work, still not working now.
git-svn-id: http://opensvn.csie.org/pttbbs/branches/piaip.automake@3152 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'innbbsd')
-rw-r--r--innbbsd/Makefile.old (renamed from innbbsd/Makefile)0
-rw-r--r--innbbsd/innbbsd.c8
2 files changed, 5 insertions, 3 deletions
diff --git a/innbbsd/Makefile b/innbbsd/Makefile.old
index 0e6c75cc..0e6c75cc 100644
--- a/innbbsd/Makefile
+++ b/innbbsd/Makefile.old
diff --git a/innbbsd/innbbsd.c b/innbbsd/innbbsd.c
index f71ab30c..bdbd2a59 100644
--- a/innbbsd/innbbsd.c
+++ b/innbbsd/innbbsd.c
@@ -266,7 +266,6 @@ static int
CMDmode(client)
ClientType *client;
{
- /* char cwdpath[MAXPATHLEN+1]; */
argv_t *argv = &client->Argv;
extern ClientType INNBBSD_STAT;
daemoncmd_t *p = argv->dc;
@@ -312,8 +311,11 @@ CMDmode(client)
fprintf(argv->out, "NONE NEWSFEEDS %d\r\n", NONENEWSFEEDS);
fprintf(argv->out, "Max connections %d\r\n", Maxclient);
#ifdef DEBUGCWD
- getwd(cwdpath);
- fprintf(argv->out, "Working directory %s\r\n", cwdpath);
+ {
+ char cwdpath[MAXPATHLEN+1];
+ getcwd(cwdpath, sizeof(cwdpath));
+ fprintf(argv->out, "Working directory %s\r\n", cwdpath);
+ }
#endif
if (Channel)
for (i = 0, j = 0; i < Maxclient; ++i) {