mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
@ -377,7 +377,7 @@ static int register_service()
|
||||
static void clean_directory(const char *dir)
|
||||
{
|
||||
char dir2[MAX_PATH+2];
|
||||
*(strmake(dir2, dir, MAX_PATH+1)+1)= 0;
|
||||
*(strmake_buf(dir2, dir)+1)= 0;
|
||||
|
||||
SHFILEOPSTRUCT fileop;
|
||||
fileop.hwnd= NULL; /* no status display */
|
||||
|
Reference in New Issue
Block a user