static void select_name(pstring string, const UNISTR2 *from)
{
if (from->buffer != 0)
- unistr2_to_ascii(string, from, sizeof(*string));
+ unistr2_to_ascii(string, from, sizeof(pstring));
}
/*************************************************************
* Copyright (C) Andrew Tridgell 1992-1998 Modified by Jeremy Allison 1995.
* Copyright (C) Benny Holmgren 1998 <bigfoot@astrakan.hgs.se>
* Copyright (C) Luke Kenneth Casson Leighton 1996-1998.
- * Copyright (C) Toomas Soomea <tsoome@ut.ee> 2001
+ * Copyright (C) Toomas Soome <tsoome@ut.ee> 2001
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
static fstring pwdmchg_t; /* from SAM */
static fstring full_name; /* from SAM */
static fstring acct_desc; /* from SAM */
+ static char empty[1]; /* just an empty string */
name = pdb_get_username(sampass);
pdb_get_hours_len(sampass)-1, EN_MODIFIED);
}
} else {
- char empty[1];
char *homedir, *dirdrive, *logon_script, *profile_path, *workstations;
*empty = '\0'; /* empty string */