diff options
author | LAN-TW <lantw44@gmail.com> | 2014-01-15 06:33:03 +0800 |
---|---|---|
committer | LAN-TW <lantw44@gmail.com> | 2014-01-15 06:33:03 +0800 |
commit | 01b4949633b43d88f3ee319491db73b93987247a (patch) | |
tree | 4bf5fe00218a60dfc163071f56d2143dab579a6e /hw4/l4basic | |
parent | 9d8903de3ca42b6daf2b716f2c1683430ca5e2b9 (diff) | |
download | sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar.gz sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar.bz2 sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar.lz sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar.xz sp2013-01b4949633b43d88f3ee319491db73b93987247a.tar.zst sp2013-01b4949633b43d88f3ee319491db73b93987247a.zip |
HW4: 基本 CGI 功能已經可以使用,但尚未完整測試
Diffstat (limited to 'hw4/l4basic')
-rw-r--r-- | hw4/l4basic/l4str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw4/l4basic/l4str.c b/hw4/l4basic/l4str.c index 5569f7a..d0a4894 100644 --- a/hw4/l4basic/l4str.c +++ b/hw4/l4basic/l4str.c @@ -9,7 +9,7 @@ bool lbs_str_has_prefix (const char* str, const char* prefix) { int i; - for (i = 0; str != '\0' && prefix[i] != '\0'; i++) { + for (i = 0; str[i] != '\0' && prefix[i] != '\0'; i++) { if (str[i] != prefix[i]) { return false; } |