[Pkg-shadow-commits] r3132 - in upstream/trunk: . lib

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Thu Mar 18 00:04:13 UTC 2010


Author: nekral-guest
Date: 2010-03-18 00:04:05 +0000 (Thu, 18 Mar 2010)
New Revision: 3132

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/tcbfuncs.c
Log:
	* lib/tcbfuncs.c: Avoid integer to char conversions.

Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2010-03-18 00:03:48 UTC (rev 3131)
+++ upstream/trunk/ChangeLog	2010-03-18 00:04:05 UTC (rev 3132)
@@ -15,6 +15,7 @@
 	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 at centraliens.net>
 

Modified: upstream/trunk/lib/tcbfuncs.c
===================================================================
--- upstream/trunk/lib/tcbfuncs.c	2010-03-18 00:03:48 UTC (rev 3131)
+++ upstream/trunk/lib/tcbfuncs.c	2010-03-18 00:04:05 UTC (rev 3132)
@@ -192,7 +192,7 @@
 		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;
@@ -250,7 +250,7 @@
 	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;




More information about the Pkg-shadow-commits mailing list