rem: new = ns_realloc(old, len+1); memcpy(new, str, len+1);
add: new = ns_realloc(old, (size_t)(len+1)); memcpy(new, str, (size_t)(len+1));
context: UpdateVar(Tcl_HashEntry *hPtr, Tcl_Obj *obj){    char *str, *old, *new;    int len;    str = Tcl_GetStringFromObj(obj, &len);    old = Tcl_GetHashValue(hPtr);    new = ns_realloc(old, len+1);    memcpy(new, str, len+1);    Tcl_SetHashValue(hPtr, new);}