comparison src/protocols/msn/slpmsg.c @ 9219:ec2a51abcc71

[gaim-migrate @ 10015] fopen files with "b" because Windows sucks. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 06 Jun 2004 17:43:37 +0000
parents ab6636c5a136
children 4c1a1be8ce33
comparison
equal deleted inserted replaced
9218:08e7ccb4610d 9219:ec2a51abcc71
93 void 93 void
94 msn_slpmsg_open_file(MsnSlpMessage *slpmsg, const char *file_name) 94 msn_slpmsg_open_file(MsnSlpMessage *slpmsg, const char *file_name)
95 { 95 {
96 struct stat st; 96 struct stat st;
97 97
98 slpmsg->fp = fopen(file_name, "r"); 98 slpmsg->fp = fopen(file_name, "rb");
99 99
100 if (stat(file_name, &st) == 0) 100 if (stat(file_name, &st) == 0)
101 slpmsg->size = st.st_size; 101 slpmsg->size = st.st_size;
102 } 102 }
103 103