[evolution-patches] Address book - Groupwise backend - for not using atoi



Hi,

atoi() was being used for time stamp string, replacing that
with g_ascii_strtod(), so that we don't store the 
wrong time stamp values.

Please review,
Thanks,
Sushma.
Index: addressbook/backends/groupwise/e-book-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/backends/groupwise/e-book-backend-groupwise.c,v
retrieving revision 1.65
diff -u -p -r1.65 e-book-backend-groupwise.c
--- addressbook/backends/groupwise/e-book-backend-groupwise.c	2 Aug 2005 07:17:22 -0000	1.65
+++ addressbook/backends/groupwise/e-book-backend-groupwise.c	5 Aug 2005 08:10:36 -0000
@@ -2698,11 +2698,11 @@ update_address_book_deltas (EBookBackend
 	/* Read the last sequence and last poa rebuild time from cache */	
 	cache_obj = e_file_cache_get_object (E_FILE_CACHE (cache), "lastSequence");
 	if (cache_obj)
-		cache_last_sequence = atoi (cache_obj);
+		cache_last_sequence = g_ascii_strtod (cache_obj, NULL);
 	
 	cache_obj = e_file_cache_get_object (E_FILE_CACHE (cache), "lastTimePORebuild");
 	if (cache_obj)
-		cache_last_po_rebuild_time = atoi (cache_obj);
+		cache_last_po_rebuild_time = g_ascii_strtod (cache_obj, NULL);
 
 	/* check whether the all the sequences are available and also whether the PO is rebuilt */
 	if (server_first_sequence > cache_last_sequence || cache_last_sequence == -1 || 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]