aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/libicalss
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2001-02-06 03:16:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-02-06 03:16:27 +0800
commitd7da449065a8138d93367765f091932481e776b4 (patch)
tree09ea5f1142b19e3dd39a4e9a226c1b797437662d /libical/src/libicalss
parent1994ec032fd25516ca9ed2f5953130794a4767a2 (diff)
downloadgsoc2013-evolution-d7da449065a8138d93367765f091932481e776b4.tar.gz
gsoc2013-evolution-d7da449065a8138d93367765f091932481e776b4.tar.zst
gsoc2013-evolution-d7da449065a8138d93367765f091932481e776b4.zip
This commit was generated by cvs2svn to compensate for changes in r7975,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=7976
Diffstat (limited to 'libical/src/libicalss')
-rw-r--r--libical/src/libicalss/icalfileset.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libical/src/libicalss/icalfileset.c b/libical/src/libicalss/icalfileset.c
index 52dbc0beda..2ef38ff876 100644
--- a/libical/src/libicalss/icalfileset.c
+++ b/libical/src/libicalss/icalfileset.c
@@ -135,11 +135,12 @@ char* icalfileset_read_from_file(char *s, size_t size, void *d)
for(p=s; p<s+size-1;p++){
if(read(fd,p,1) != 1 || *p=='\n'){
- break;
+ p++;
+ break;
}
}
- *(++p) = '\0';
+ *p = '\0';
if(*s == 0){
return 0;