pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:21:    full_hash_value=hashmem((unsigned char *)s, len, 20);    return full_hash_value % HTABLE_SIZE;   }      #ifdef DEBUG   void check_string(struct lpc_string *s)   {    if(debug_findstring(s) !=s)    fatal("Shared string not shared.\n");    +  if(s->str[s->len]) +  fatal("Shared string is not zero terminated properly.\n"); +     checked((void *)s,1);   }      void verify_shared_strings_tables(int pass)   {    unsigned int e, h;    struct lpc_string *s;       for(e=0;e<HTABLE_SIZE;e++)    {