chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb]
/
key
/
key-text.c
diff --git
a/key/key-text.c
b/key/key-text.c
index 98c1fba10f10f6025ae287f5c852c52ec63c04f3..ace69ce1445d5b4895a8980c013ece0f9867dfb2 100644
(file)
--- a/
key/key-text.c
+++ b/
key/key-text.c
@@
-34,6
+34,7
@@
#include <mLib/base64.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
#include <mLib/base64.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include <mLib/sub.h>
#include <mLib/sym.h>
#include <mLib/url.h>
#include <mLib/sub.h>
#include <mLib/sym.h>
#include <mLib/url.h>
@@
-298,7
+299,7
@@
int key_write(key_data *k, dstr *d, const key_filter *kf)
DPUTC(d, ':');
while (*p) {
if (*p == ' ') DPUTC(d, '+');
DPUTC(d, ':');
while (*p) {
if (*p == ' ') DPUTC(d, '+');
- else if (!
isalnum((unsigned char)
*p)) dstr_putf(d, "%%%02x", *p);
+ else if (!
ISALNUM(
*p)) dstr_putf(d, "%%%02x", *p);
else DPUTC(d, *p);
p++;
}
else DPUTC(d, *p);
p++;
}