fix bug in ensure_dir_exist_varg()

This commit is contained in:
Nedko Arnaudov 2011-08-01 04:45:09 +03:00
parent 0686ff9c47
commit a9fe28d65f
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/* /*
* LADI Session Handler (ladish) * LADI Session Handler (ladish)
* *
* Copyright (C) 2009,2010 Nedko Arnaudov <nedko@arnaudov.name> * Copyright (C) 2009,2010,2011 Nedko Arnaudov <nedko@arnaudov.name>
* *
************************************************************************** **************************************************************************
* This file contains implementation of the directory helper functions * This file contains implementation of the directory helper functions
@ -213,7 +213,7 @@ bool ensure_dir_exist_varg(int mode, ...)
while ((str = va_arg(ap, const char *)) != NULL) while ((str = va_arg(ap, const char *)) != NULL)
{ {
len = strlen(str); len = strlen(str);
memcpy(buffer, str, len); memcpy(p, str, len);
p += len; p += len;
} }
va_end(ap); va_end(ap);