266 |
{ |
{ |
267 |
pos2 = next_arg(optarg, '='); |
pos2 = next_arg(optarg, '='); |
268 |
|
|
269 |
strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name)-1); |
strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name) - 1); |
270 |
if (strlen(optarg) > (sizeof(g_rdpdr_device[*id].name)-1)) |
if (strlen(optarg) > (sizeof(g_rdpdr_device[*id].name) - 1)) |
271 |
fprintf(stderr, "share name %s truncated to %s\n", optarg, |
fprintf(stderr, "share name %s truncated to %s\n", optarg, |
272 |
g_rdpdr_device[*id].name); |
g_rdpdr_device[*id].name); |
273 |
|
|
925 |
FsVolumeInfo(char *fpath) |
FsVolumeInfo(char *fpath) |
926 |
{ |
{ |
927 |
|
|
|
FILE *fdfs; |
|
928 |
static FsInfoType info; |
static FsInfoType info; |
929 |
#ifdef HAVE_MNTENT_H |
#ifdef HAVE_MNTENT_H |
930 |
|
FILE *fdfs; |
931 |
struct mntent *e; |
struct mntent *e; |
932 |
#endif |
#endif |
933 |
|
|