aboutsummaryrefslogtreecommitdiff
path: root/puny.c
diff options
context:
space:
mode:
Diffstat (limited to 'puny.c')
-rw-r--r--puny.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/puny.c b/puny.c
index 7c3c92e..e6ea438 100644
--- a/puny.c
+++ b/puny.c
@@ -151,7 +151,7 @@ decode(const char *str, char *out, size_t len, const char **err)
unsigned int numpoints;
const char *s;
- if (!starts_with(str, "xn--")) {
+ if (strncmp(str, "xn--", 4) != 0) {
strncpy(out, str, len);
return 1;
}