Permalink
Browse files

destLen + 1 to avoid 0 * 2 iterations

  • Loading branch information...
1 parent 3faad13 commit c606491dfae9b4bdffe4917e81c28664e15c76cb @astro committed Nov 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 node-stringprep.cc
View
@@ -117,7 +117,7 @@ class StringPrep : public ObjectWrap {
Handle<Value> prepare(String::Value &str)
{
- size_t destLen = str.length();
+ size_t destLen = str.length() + 1;
UChar *dest = NULL;
while(!dest)
{

0 comments on commit c606491

Please sign in to comment.