fixed build errors on Solaris

This commit is contained in:
Arvid Norberg
2009-01-27 08:24:48 +00:00
parent 37c48117b0
commit 3cdf9c87a8
26 changed files with 88 additions and 61 deletions

View File

@@ -285,7 +285,7 @@ namespace libtorrent
i->offset = off;
i->file_base = 0;
char name[10];
sprintf(name, "%d", padding_file);
std::sprintf(name, "%d", padding_file);
i->path = *(i+1)->path.begin();
i->path /= "_____padding_file_";
i->path /= name;