diff options
author | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-03-07 18:03:24 +0000 |
---|---|---|
committer | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-03-07 18:03:24 +0000 |
commit | 2a8bf36dc9fcf8aa307a91677ed04257a37fd3a4 (patch) | |
tree | fe5fa3ca2265ddca5e1a6be2cde42a96f72217f1 /navit/bookmarks.c | |
parent | 38d966c42f930b0cbff46b5579df202e04ee4a37 (diff) | |
download | navit-svn-2a8bf36dc9fcf8aa307a91677ed04257a37fd3a4.tar.gz |
Fix:core:Fixed ticket #558 (getline missing on android)
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2984 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/bookmarks.c')
-rw-r--r-- | navit/bookmarks.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/navit/bookmarks.c b/navit/bookmarks.c index 98d443e5..8dd1d190 100644 --- a/navit/bookmarks.c +++ b/navit/bookmarks.c @@ -150,22 +150,6 @@ bookmarks_store_bookmarks_to_file(struct bookmarks *this_, int limit,int replac struct bookmark_item_priv *item; const char *prostr; - if (limit>0) { - limit++; //We are 1 based, not zero - //Calculate, how many entries we already have - f=fopen(this_->working_file,"r"); - if (f!=NULL) { - while (!feof(f) && limit>0) { - char* tmpline=NULL; - size_t tmpn; - getline(&tmpline,&tmpn,f); - limit--; - free(tmpline); - } - } - fclose(f); - } - f=fopen(this_->working_file, replace ? "w+" : "a+"); if (f==NULL) { return FALSE; |