summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-19 00:52:52 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-19 00:52:52 +0800
commit4487211c2d8094548f7b8dc2fcad6da218b6a5ad (patch)
treea260f4d20bfff757ed5a099fd513bbed4f0c4716 /mbbsd
parent2dc4c8b2fa9f10eee3012ecd21446331c2352501 (diff)
downloadpttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar.gz
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar.bz2
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar.lz
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar.xz
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.tar.zst
pttbbs-4487211c2d8094548f7b8dc2fcad6da218b6a5ad.zip
if justify.wait no exists ^^"
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@48 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index a15cfe8d..7f814b28 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.9 2002/03/18 06:02:03 in2 Exp $ */
+/* $Id: user.c,v 1.10 2002/03/18 16:52:52 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -812,14 +812,15 @@ static void toregister(char *email, char *genbuf, char *phone, char *career,
sethomefile(buf, cuser.userid, "justify.wait");
if( phone[0] == 0 ){
- fn = fopen(buf, "r");
- fgets(phone, 21, fn); phone[ strlen(phone) - 1] = 0;
- fgets(career,41, fn); career[strlen(career)- 1] = 0;
- fgets(ident, 12, fn); ident[ strlen(ident) - 1] = 0;
- fgets(rname, 21, fn); rname[ strlen(rname) - 1] = 0;
- fgets(addr, 51, fn); addr [ strlen(addr) - 1] = 0;
- fgets(mobile,21, fn); mobile[strlen(mobile)- 1] = 0;
- fclose(fn);
+ if( (fn = fopen(buf, "r")) ){
+ fgets(phone, 21, fn); phone[ strlen(phone) - 1] = 0;
+ fgets(career,41, fn); career[strlen(career)- 1] = 0;
+ fgets(ident, 12, fn); ident[ strlen(ident) - 1] = 0;
+ fgets(rname, 21, fn); rname[ strlen(rname) - 1] = 0;
+ fgets(addr, 51, fn); addr [ strlen(addr) - 1] = 0;
+ fgets(mobile,21, fn); mobile[strlen(mobile)- 1] = 0;
+ fclose(fn);
+ }
}
else{
fn = fopen(buf, "w");