From: Andrew Deason Date: Tue, 15 Nov 2011 17:53:12 +0000 (-0600) Subject: vlserver: Avoid atoi for vol ids X-Git-Tag: upstream/1.8.0_pre1^2~3039 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d113c0eb8ac4717cafd7747a78c5aa3b649b8e68;p=packages%2Fo%2Fopenafs.git vlserver: Avoid atoi for vol ids Change-Id: I27c30f9320ea6d2093846148ad455eda71b0b713 Reviewed-on: http://gerrit.openafs.org/6050 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/vlserver/vlprocs.c b/src/vlserver/vlprocs.c index b117ee414..fad5f9cae 100644 --- a/src/vlserver/vlprocs.c +++ b/src/vlserver/vlprocs.c @@ -601,7 +601,7 @@ GetEntryByName(struct rx_call *rxcall, char rxstr[AFS_RXINFO_LEN]; if (NameIsId(volname)) { - return GetEntryByID(rxcall, atoi(volname), -1, aentry, new, this_op); + return GetEntryByID(rxcall, strtoul(volname, NULL, 10), -1, aentry, new, this_op); } if (InvalidVolname(volname)) return VL_BADNAME;