spw_setdbname's prototype.
* lib/tcbfuncs.c: Ignore fflush() return value.
* lib/tcbfuncs.c: Avoid implicit signed to unsigned conversions.
+ * lib/tcbfuncs.c: Avoid integer to char conversions.
2010-03-17 Nicolas François <nicolas.francois@centraliens.net>
goto out_free_path;
}
while ((ind = strchr(ptr, '/'))) {
- *ind = 0;
+ *ind = '\0';
if (asprintf(&dir, TCB_DIR "/%s", path) == -1) {
OUT_OF_MEMORY;
return SHADOWTCB_FAILURE;
char *ind, *dir;
shadowtcb_status ret = SHADOWTCB_SUCCESS;
while ((ind = strrchr(path, '/'))) {
- *ind = 0;
+ *ind = '\0';
if (asprintf(&dir, TCB_DIR "/%s", path) == -1) {
OUT_OF_MEMORY;
return SHADOWTCB_FAILURE;