You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/09/09 17:34:36 UTC
svn commit: r995465 - /subversion/trunk/subversion/libsvn_ra_neon/lock.c
Author: stsp
Date: Thu Sep 9 15:34:35 2010
New Revision: 995465
URL: http://svn.apache.org/viewvc?rev=995465&view=rev
Log:
* subversion/libsvn_ra_neon/lock.c
(): Include svn_string.h.
(lock_from_baton): Use svn_cstring_atoi() instead of atoi().
Modified:
subversion/trunk/subversion/libsvn_ra_neon/lock.c
Modified: subversion/trunk/subversion/libsvn_ra_neon/lock.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_neon/lock.c?rev=995465&r1=995464&r2=995465&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_neon/lock.c (original)
+++ subversion/trunk/subversion/libsvn_ra_neon/lock.c Thu Sep 9 15:34:35 2010
@@ -32,6 +32,7 @@
#include "svn_ra.h"
#include "../libsvn_ra/ra_loader.h"
#include "svn_path.h"
+#include "svn_string.h"
#include "svn_time.h"
#include "svn_private_config.h"
@@ -209,8 +210,9 @@ lock_from_baton(svn_lock_t **lock,
{
if (strncmp("Second-", timeout_str, strlen("Second-")) == 0)
{
- int time_offset = atoi(&(timeout_str[7]));
-
+ int time_offset;
+
+ SVN_ERR(svn_cstring_atoi(&time_offset, &(timeout_str[7])));
lck->expiration_date = lck->creation_date
+ apr_time_from_sec(time_offset);
}