Skip to content

Commit

Permalink
Hines/sprintf typo (#47)
Browse files Browse the repository at this point in the history
* typo causes compile error on windows
  • Loading branch information
nrnhines committed Dec 4, 2022
1 parent 5e4c1ac commit b86fc14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/IV-Win/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ void SessionRep::load_path(
{
String h(head);
String t(tail);
auto z = strlen(head) + strlen(tail) + 1;
auto sz = strlen(head) + strlen(tail) + 1;
char* buff = new char[sz];
snprintf(buff, sz, "%s%s", head, tail);
load_file(s, buff, priority);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/OS/directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ void DirectoryImpl::do_fill() {
void DirectoryImpl::do_fill() {
WIN32_FIND_DATA fd;
HANDLE h;
auto sz = strlen(name->string()) + 3;
auto sz = strlen(name_->string()) + 3;
char * buf = new char[sz];
snprintf(buf, sz, "%s%s", name_->string(), "*");
for (h = FindFirstFile(buf, &fd); FindNextFile(h, &fd);) {
Expand Down

0 comments on commit b86fc14

Please sign in to comment.