summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadAix.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-12 19:38:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-12 19:38:33 (GMT)
commit1961633531b70d5a6e627f86153f4d15e722ea8b (patch)
treeae45ec4f7d15560e77c426d92540667e45095d50 /unix/tclLoadAix.c
parent00268d4ae68741fdbf73a54412cd38648f9d7302 (diff)
downloadtcl-1961633531b70d5a6e627f86153f4d15e722ea8b.zip
tcl-1961633531b70d5a6e627f86153f4d15e722ea8b.tar.gz
tcl-1961633531b70d5a6e627f86153f4d15e722ea8b.tar.bz2
If compiled with -DTCL_NO_DEPRECATED, remove Tcl_NewIntObj/Tcl_NewLongObj/Tcl_DbNewLongObj from stub table, as they will be gone in 9.0 (converted to a macro)
Use Tcl_WideInt's directly in more places, diminishing the possibility of inadvent overflow.
Diffstat (limited to 'unix/tclLoadAix.c')
-rw-r--r--unix/tclLoadAix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclLoadAix.c b/unix/tclLoadAix.c
index 88e6b50..e5d9729 100644
--- a/unix/tclLoadAix.c
+++ b/unix/tclLoadAix.c
@@ -134,7 +134,7 @@ dlopen(
return NULL;
}
- mp->name = malloc((unsigned) (strlen(path) + 1));
+ mp->name = malloc(strlen(path) + 1);
strcpy(mp->name, path);
/*
@@ -541,7 +541,7 @@ readExports(
tmpsym[SYMNMLEN] = '\0';
symname = tmpsym;
}
- ep->name = malloc((unsigned) (strlen(symname) + 1));
+ ep->name = malloc(strlen(symname) + 1);
strcpy(ep->name, symname);
ep->addr = (void *)((unsigned long)
mp->entry + ls->l_value - shdata.s_vaddr);