summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-18 01:49:06 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-18 01:49:06 +1030
commit71ec9cb679afb648fac76e7763b96def1f290c22 (patch)
treebe2d2f0e2bcecd824748a9ed16ca8465dd2862ba
parent73954921146ba51f4a3f7be96261c684ebe89c0e (diff)
downloadwebsitegenerator-71ec9cb679afb648fac76e7763b96def1f290c22.tar.gz
websitegenerator-71ec9cb679afb648fac76e7763b96def1f290c22.zip
pretty sure we should be checking for \n here
-rw-r--r--pages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages.c b/pages.c
index 878c4c8..1669778 100644
--- a/pages.c
+++ b/pages.c
@@ -800,7 +800,7 @@ writerss(FILE *out, int post)
strncpy(date, line, 512);
}
- if (pos >= 2 && (title[0] == 0 || date[0] == 0))
+ if (pos >= 2 && (title[0] == '\n' || date[0] == '\n'))
{
fprintf(stderr, "post %s has a broken format, please fix it\n", buff);
fclose(in);