projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7fedf4
)
add FIXME comments for use of atoi
author
Jim Meyering
<jim@meyering.net>
Sat, 12 Feb 2000 10:11:54 +0000
(10:11 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 12 Feb 2000 10:11:54 +0000
(10:11 +0000)
lib/userspec.c
patch
|
blob
|
history
diff --git
a/lib/userspec.c
b/lib/userspec.c
index fe2596858a2d9ba9d05f3333a2fcb64a50226ddc..135a36c5d949a0aa4aede0c3ae448bc0e8ba6c29 100644
(file)
--- a/
lib/userspec.c
+++ b/
lib/userspec.c
@@
-183,7
+183,10
@@
parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid,
if (use_login_group)
error_msg = "cannot get the login group of a numeric UID";
else
- *uid = atoi (u);
+ {
+ /* FIXME: don't use atoi! */
+ *uid = atoi (u);
+ }
}
}
else
@@
-223,7
+226,10
@@
parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid,
if (!is_number (g))
error_msg = "invalid group";
else
- *gid = atoi (g);
+ {
+ /* FIXME: don't use atoi! */
+ *gid = atoi (g);
+ }
}
else
*gid = grp->gr_gid;