diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-19 02:25:03 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-19 02:25:03 +1030 |
commit | 04a44898f01fc8c30aba7e69b8f38b4bba30ec12 (patch) | |
tree | dbe2c17be355bc33465f664f06a47f508fa42ea9 | |
parent | dfecea539fe2c2adc847f71cae0a3d1d59bead1c (diff) | |
download | websitegenerator-04a44898f01fc8c30aba7e69b8f38b4bba30ec12.tar.gz websitegenerator-04a44898f01fc8c30aba7e69b8f38b4bba30ec12.zip |
rss: fix description generation
-rw-r--r-- | pages.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -846,18 +846,18 @@ writerss(FILE *out, int post) fclose(in); return 0; } - else if (pos >= 3) + else if (pos == 3) { strncpy(description, line, 100); + } - /* try to find images */ - char *img; - if ((img = strstr(line, "<img"))) - { - hasimg = 1; - getimage(img, image, 1024); - break; - } + /* try to find images */ + char *img; + if ((img = strstr(line, "<img"))) + { + hasimg = 1; + getimage(img, image, 1024); + break; } pos++; } |