-rw-r--r-- | html.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -47,3 +47,3 @@ void html_txt(char *txt) char *t = txt; - while(*t){ + while(t && *t){ int c = *t; @@ -70,3 +70,3 @@ void html_ntxt(int len, char *txt) char *t = txt; - while(*t && len--){ + while(t && *t && len--){ int c = *t; @@ -99,3 +99,3 @@ void html_attr(char *txt) char *t = txt; - while(*t){ + while(t && *t){ int c = *t; @@ -157,2 +157 @@ void html_filemode(unsigned short mode) } - |