diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-10 01:29:36 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-10 01:29:36 +0800 |
commit | 90451291f8f509d0f0e3f1c442bb3325de30d9b0 (patch) | |
tree | 1d5737feb5cb95e231206b875c21d2d8f88607c6 /util/post.c | |
parent | a0baab6a9bbe6e76779927273f3faeba5b4d3990 (diff) | |
download | pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar.gz pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar.bz2 pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar.lz pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar.xz pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.tar.zst pttbbs-90451291f8f509d0f0e3f1c442bb3325de30d9b0.zip |
boards/<hash>/<brdname>
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@15 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/post.c')
-rw-r--r-- | util/post.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/post.c b/util/post.c index efec797f..d4907096 100644 --- a/util/post.c +++ b/util/post.c @@ -1,4 +1,4 @@ -/* $Id: post.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id: post.c,v 1.2 2002/03/09 17:29:20 in2 Exp $ */ #include <stdio.h> #include <string.h> #include <sys/types.h> @@ -13,7 +13,7 @@ void keeplog(FILE *fin, char *fpath, char *board, char *title, char *owner) { FILE *fout; int bid; - sprintf(genbuf, BBSHOME "/boards/%s", board); + sprintf(genbuf, BBSHOME "/boards/%c/%s", board[0], board); stampfile(genbuf, &fhdr); if(!(fout = fopen(genbuf, "w"))) { @@ -31,7 +31,7 @@ void keeplog(FILE *fin, char *fpath, char *board, char *title, char *owner) { fhdr.title[sizeof(fhdr.title) - 1] = '\0'; strcpy(fhdr.owner, owner); - sprintf(genbuf, BBSHOME "/boards/%s/.DIR", board); + sprintf(genbuf, BBSHOME "/boards/%c/%s/.DIR", board[0], board); append_record(genbuf, &fhdr, sizeof(fhdr)); if((bid = getbnum(board)) > 0) touchbtotal(bid); |