View | Details | Raw Unified | Return to bug 27757
Collapse All | Expand All

(-)edit.c (-1 / +1 lines)
Lines 255-261 Link Here
255
		pw->pw_gecos[len - 1] = '\0';
255
		pw->pw_gecos[len - 1] = '\0';
256
256
257
	if (snprintf(buf, sizeof(buf),
257
	if (snprintf(buf, sizeof(buf),
258
	    "%s:%s:%d:%d:%s:%ld:%ld:%s:%s:%s",
258
	    "%s:%s:%u:%u:%s:%ld:%ld:%s:%s:%s",
259
	    pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class,
259
	    pw->pw_name, pw->pw_passwd, pw->pw_uid, pw->pw_gid, pw->pw_class,
260
	    pw->pw_change, pw->pw_expire, pw->pw_gecos, pw->pw_dir,
260
	    pw->pw_change, pw->pw_expire, pw->pw_gecos, pw->pw_dir,
261
	    pw->pw_shell) >= sizeof(buf)) {
261
	    pw->pw_shell) >= sizeof(buf)) {
(-)pw_copy.c (-2 / +2 lines)
Lines 64-71 Link Here
64
	char chgstr[20];
64
	char chgstr[20];
65
	char expstr[20];
65
	char expstr[20];
66
66
67
	snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid);
67
	snprintf(uidstr, sizeof(uidstr), "%u", pw->pw_uid);
68
	snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid);
68
	snprintf(gidstr, sizeof(gidstr), "%u", pw->pw_gid);
69
	snprintf(chgstr, sizeof(chgstr), "%ld", (long)pw->pw_change);
69
	snprintf(chgstr, sizeof(chgstr), "%ld", (long)pw->pw_change);
70
	snprintf(expstr, sizeof(expstr), "%ld", (long)pw->pw_expire);
70
	snprintf(expstr, sizeof(expstr), "%ld", (long)pw->pw_expire);

Return to bug 27757