diff options
author | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:30:48 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2015-03-20 12:30:48 +0000 |
commit | 90171f125f36488dc08f5cfe0b0d4b78d995f08d (patch) | |
tree | e65a38bd8ba391fc800cecc896379a7fb76a0608 /plugins/MirOTR/ekhtml/src/ekhtml_mktables.c | |
parent | 190307ca7aee92d6b862db0bf78cde10acfc95d0 (diff) |
MirOTR: updated ekhtml from 0.3.2 to 0.3.3-pre (Git 0092d9d), this fixes a memory leak and improves attribute parsing
git-svn-id: http://svn.miranda-ng.org/main/trunk@12448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/ekhtml/src/ekhtml_mktables.c')
-rw-r--r-- | plugins/MirOTR/ekhtml/src/ekhtml_mktables.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c b/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c index 9a8dea2a03..412b313467 100644 --- a/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c +++ b/plugins/MirOTR/ekhtml/src/ekhtml_mktables.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, Jon Travis + * Copyright (c) 2002-2004, Jon Travis * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -69,7 +69,8 @@ static EKHTML_CHARMAP_TYPE valid_attrvalue(char in){ in == '%' || in == '?' || in == '!' || in == '&' || in == '(' || in == ')' || in == '#' || in == '=' || in == '~' || in == ']' || in == '*' || in == '@' || - in == '$' || in == '_') + in == '$' || in == '_' || in == ',' || in == ';' || + in == '|') return 1; return 0; } @@ -110,7 +111,7 @@ static void print_charmap(char *name, EKHTML_CHARMAP_TYPE (*cmap_func)(char)){ int ch; char sbuf[256]; - sprintf_s(sbuf, 256, "0x%%0%dx ", EKHTML_CHARMAP_LEN * 2); + sprintf(sbuf, "0x%%0%dx ", EKHTML_CHARMAP_LEN * 2); printf("#ifdef EKHTML_USE_TABLES\n"); printf("const %s %s[256] = {\n", EKHTML_CHARMAP_TYPE_S, name); for(ch=0; ch < 256; ch++){ |