看板SetupBBS
标 题Re: [转录][Patch] expire.c 砍错文章 bug
发信站元智大学风之塔 (Mon Jan 12 20:03:34 2004)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.yzu!bbs.yzu
※ 引述《visor (魔戒一二加长版收录完...)》之铭言:
> ※ 本文转录自 [WindTop] 看板
> 作者: visor (魔戒一二加长版收录完...) 看板: WindTop
> 标题: [Patch] expire.c 砍错文章 bug
> 时间: Mon Jan 12 19:53:08 2004
> expire.c
> sync_init()
> {
> ...............
> if (dirp = opendir(fpath))
> {
> while (de = readdir(dirp))
> {
> str = de->d_name;
> - prefix = *str--;
^^ po 错 ^^; 原来的是 ++
> + prefix = *str;
> if (prefix == '.')
> continue;
> .................
--
※ Origin: 元智大学 风之塔 <bbs.yzu.edu.tw>
※ From : 220-142-204-25.hinet-ip.hinet.net