[Groonga-commit] groonga/groonga [master] should start writing at len - 1. refs #1194

Back to archive index

null+****@clear***** null+****@clear*****
2011年 12月 10日 (土) 19:19:04 JST


Yoji SHIDARA	2011-12-10 10:19:04 +0000 (Sat, 10 Dec 2011)

  New Revision: 55c7145d94447bb5241b85a1850f163125dfaaac

  Log:
    should start writing at len - 1. refs #1194

  Modified files:
    lib/str.c

  Modified: lib/str.c (+1 -1)
===================================================================
--- lib/str.c    2011-12-09 09:44:56 +0000 (639bf4f)
+++ lib/str.c    2011-12-10 10:19:04 +0000 (e219843)
@@ -1527,7 +1527,7 @@ void
 grn_itoh(unsigned int i, char *p, unsigned int len)
 {
   static const char *hex = "0123456789ABCDEF";
-  p += len;
+  p += len - 1;
   while (len--) {
     *p-- = hex[i & 0xf];
     i >>= 4;




Groonga-commit メーリングリストの案内
Back to archive index