Merge branch 'stable'

This commit is contained in:
Lars Hjemli 2009-08-18 17:21:52 +02:00
當前提交 523c133e2e
共有 2 個檔案被更改,包括 2 行新增0 行删除

查看文件

@ -42,6 +42,7 @@ char *readfile(const char *path)
if (!(f = fopen(path, "r")))
return NULL;
buf[0] = 0;
fgets(buf, MAX_PATH, f);
fclose(f);
return buf;

查看文件

@ -23,6 +23,7 @@ time_t read_agefile(char *path)
if (!(f = fopen(path, "r")))
return -1;
buf[0] = 0;
if (fgets(buf, sizeof(buf), f) == NULL)
return -1;
fclose(f);