Permalink
Browse files

really? it doesn't null terminate? Wow.

  • Loading branch information...
1 parent 9813b47 commit 1346b1fb9abca075310184334f674d6a4b0dff2e @postwait committed Feb 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/ceoip.cc
View
@@ -152,6 +152,7 @@ class Connection : public EventEmitter {
size_t inlen = strlen(a); \
size_t outlen = blen; \
if(iconv(cd, &in, &inlen, &out, &outlen) == -1) b[0] = '\0'; \
+ else *out = '\0'; \
} while(0)
Local<Value>BuildResult(GeoIPRecord *record) {

0 comments on commit 1346b1f

Please sign in to comment.