oops :)
authorPierre Habouzit <madcoder@debian.org>
Sun, 3 Dec 2006 14:32:47 +0000 (15:32 +0100)
committerPierre Habouzit <madcoder@debian.org>
Sun, 3 Dec 2006 14:32:47 +0000 (15:32 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-lib/str.c

index 53f6ebb..c71c459 100644 (file)
@@ -250,7 +250,7 @@ ssize_t m_strwidth (const char *s)
             wc = '?';
           default:
             w   += iswprint(wc) ? wcwidth(wc) : 1;
-            pos -= nb;
+            pos += nb;
         }
     }