comparison plugins/icq/filesession.c @ 2013:0be1e533036c

[gaim-migrate @ 2023] wee committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 13 Jun 2001 23:39:26 +0000
parents 7b3f1eb1ef7d
children
comparison
equal deleted inserted replaced
2012:5748a6faa461 2013:0be1e533036c
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 2
3 /* 3 /*
4 * $Id: filesession.c 1987 2001-06-09 14:46:51Z warmenhoven $ 4 * $Id: filesession.c 2023 2001-06-13 23:39:26Z warmenhoven $
5 * 5 *
6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and 6 * Copyright (C) 1998-2001, Denis V. Dmitrienko <denis@null.net> and
7 * Bill Soudan <soudan@kde.org> 7 * Bill Soudan <soudan@kde.org>
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
213 if(pos) basename=pos+1; 213 if(pos) basename=pos+1;
214 strncpy(p->current_file, basename, 64); 214 strncpy(p->current_file, basename, 64);
215 p->current_file_progress=0; 215 p->current_file_progress=0;
216 p->current_file_size=file_status.st_size; 216 p->current_file_size=file_status.st_size;
217 #ifdef _WIN32 217 #ifdef _WIN32
218 p->current_fd=open(*files, O_RDONLY | _O_BINARY); 218 p->current_fd=open(*files, _O_RDONLY | _O_BINARY);
219 #else 219 #else
220 p->current_fd=open(*files, O_RDONLY); 220 p->current_fd=open(*files, O_RDONLY);
221 #endif 221 #endif
222 } 222 }
223 223