diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-06-19 01:14:53 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-06-19 01:14:53 +0800 |
commit | e246cd2d6a2eb7bf62edf16afbee8d288e83dd37 (patch) | |
tree | bc6447822725b58192eaf47b94c05ecdbc88d031 /mbbsd/gamble.c | |
parent | f5649a5aed5a9fc3b31b7964087252525fca5e60 (diff) | |
download | pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar.gz pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar.bz2 pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar.lz pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar.xz pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.tar.zst pttbbs-e246cd2d6a2eb7bf62edf16afbee8d288e83dd37.zip |
* revise code.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3546 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r-- | mbbsd/gamble.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index 79cb5be8..049bda74 100644 --- a/mbbsd/gamble.c +++ b/mbbsd/gamble.c @@ -50,8 +50,7 @@ show_ticket_data(char betname[MAX_ITEM][MAX_ITEM_LEN],const char *direct, int *p fgets(genbuf, MAX_ITEM_LEN, fp); *price = atoi(genbuf); for (count = 0; fgets(betname[count], MAX_ITEM_LEN, fp) && count < MAX_ITEM; count++) { - char *newline = strpbrk(betname[count], "\r\n"); - if (newline) *newline = '\0'; + chomp(betname[count]); } fclose(fp); |