Fixed indentation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@826 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
914e383344
commit
136341da2a
4
disk.c
4
disk.c
@ -266,8 +266,8 @@ disk_enum_devices(uint32 * id, char *optarg)
|
||||
{
|
||||
pos2 = next_arg(optarg, '=');
|
||||
|
||||
strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name)-1);
|
||||
if (strlen(optarg) > (sizeof(g_rdpdr_device[*id].name)-1))
|
||||
strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name) - 1);
|
||||
if (strlen(optarg) > (sizeof(g_rdpdr_device[*id].name) - 1))
|
||||
fprintf(stderr, "share name %s truncated to %s\n", optarg,
|
||||
g_rdpdr_device[*id].name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user