summaryrefslogtreecommitdiff
path: root/pages.c
diff options
context:
space:
mode:
Diffstat (limited to 'pages.c')
-rw-r--r--pages.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pages.c b/pages.c
index b84caac..4681eef 100644
--- a/pages.c
+++ b/pages.c
@@ -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++;
}