* src/useradd.c: Check assumptions on snprintf().

* src/useradd.c: Replace peror by an strerror and avoid an
	intermediate buffer.
	* src/useradd.c: Save errno between the failure and the report by
	perror/strerror.
	* src/useradd.c: Prefer xmalloc to malloc.
This commit is contained in:
nekral-guest
2009-04-24 23:23:51 +00:00
parent 861773bf77
commit 1a87c69854
2 changed files with 29 additions and 10 deletions

View File

@@ -1,3 +1,12 @@
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c: Check assumptions on snprintf().
* src/useradd.c: Replace peror by an strerror and avoid an
intermediate buffer.
* src/useradd.c: Save errno between the failure and the report by
perror/strerror.
* src/useradd.c: Prefer xmalloc to malloc.
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* src/lastlog.c: Remove function calls from within assert().