Mercurial > pidgin.yaz
comparison src/util.c @ 3466:7a3f16a375a5
[gaim-migrate @ 3516]
some patches from some people.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 29 Aug 2002 01:47:15 +0000 |
parents | 222e23f91092 |
children | cfbdfe334975 |
comparison
equal
deleted
inserted
replaced
3465:ec437d73b2ee | 3466:7a3f16a375a5 |
---|---|
1236 */ | 1236 */ |
1237 static const char *gaim_mkstemp_templ = {"gaimXXXXXX"}; | 1237 static const char *gaim_mkstemp_templ = {"gaimXXXXXX"}; |
1238 | 1238 |
1239 FILE *gaim_mkstemp(gchar **fpath) | 1239 FILE *gaim_mkstemp(gchar **fpath) |
1240 { | 1240 { |
1241 gchar *tmpdir; | 1241 const gchar *tmpdir; |
1242 int fd; | 1242 int fd; |
1243 FILE *fp = NULL; | 1243 FILE *fp = NULL; |
1244 | 1244 |
1245 if((tmpdir = g_get_tmp_dir()) != NULL) { | 1245 if((tmpdir = g_get_tmp_dir()) != NULL) { |
1246 if((*fpath = g_strdup_printf("%s/%s", tmpdir, gaim_mkstemp_templ)) != NULL) { | 1246 if((*fpath = g_strdup_printf("%s/%s", tmpdir, gaim_mkstemp_templ)) != NULL) { |