diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-17 15:30:04 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-17 15:30:04 +0800 |
commit | 5402fe30f1616a09e6510e2d1684214a5196e6b7 (patch) | |
tree | 1f03e41f34439cadfa084e5b55a7c266cc667b0c /mbbsd | |
parent | e0697cc2d7d35fb7e5458edd8505908dd283735d (diff) | |
download | pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar.gz pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar.bz2 pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar.lz pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar.xz pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.tar.zst pttbbs-5402fe30f1616a09e6510e2d1684214a5196e6b7.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@38 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index c7982753..084fed95 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.4 2002/03/17 06:15:04 in2 Exp $ */ +/* $Id: user.c,v 1.5 2002/03/17 07:30:04 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -931,13 +931,13 @@ int u_register(void) }while( !ispersonalid(ident) ); do{ getfield(5, "請用中文", "真實姓名", rname, 20); - }while(!removespace(rname) || isalpha(rname[0])); + }while(!removespace(rname) || rname[0] > 0); do{ getfield(7, "學校系級或單位職稱", "服務單位", career, 40); - }while( !removespace(career) || career[0] < 0 || strlen(career) < 4 ); + }while( !removespace(career) || career[0] > 0 || strlen(career) < 4 ); do{ getfield(9, "包括寢室或門牌號碼", "目前住址", addr, 50); - }while( !(addr[0]) || addr[0] < 0 || strlen(addr) < 15 ); + }while( !(addr[0]) || addr[0] > 0 || strlen(addr) < 15 ); do{ getfield(11, "包括長途撥號區域碼", "連絡電話", phone, 20); }while( !removespace(phone) || phone[0] != '0' || strlen(phone) < 8 ); |