Introduction
Introduction Statistics Contact Development Disclaimer Help
small fixes reported by Johannes. Thx btw :) - smu - smu - simple markup (Markd…
git clone git://git.codemadness.org/smu
Log
Files
Refs
README
LICENSE
---
commit 1b0c0b16d11ec50ae1c7c3355634c06ee53047d5
parent c499a2afe19c02a3826d2f61bc3a747e6fdbffdf
Author: Enno Boland (Gottox) <[email protected]>
Date: Thu, 3 Jul 2008 08:55:01 +0200
small fixes reported by Johannes. Thx btw :)
Diffstat:
M smu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/smu.c b/smu.c
@@ -10,7 +10,7 @@
#include <ctype.h>
#define LENGTH(x) sizeof(x)/sizeof(x[0])
-#define ADDC(b,i) if(i % BUFSIZ == 0) { b = realloc(b, (i + BUFSIZ) * sizeof(…
+#define ADDC(b,i) if(i % BUFSIZ == 0) { b = realloc(b, (i + BUFSIZ) * sizeof(…
typedef int (*Parser)(const char *, const char *, int);
typedef struct {
@@ -163,9 +163,9 @@ dohtml(const char *begin, const char *end, int newblock) {
p++;
tag = p;
for(; isalnum(*p) && p < end; p++);
+ tagend = p;
if(p > end || tag == tagend)
return 0;
- tagend = p;
while((p = strstr(p, "</")) && p < end) {
p += 2;
if(strncmp(p, tag, tagend - tag) == 0 && p[tagend - tag] == '>…
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.