* Improve handling of the media_dir setting.

This commit is contained in:
Justin Maggard
2012-02-28 07:36:14 +00:00
parent 638c4a45d9
commit 7f3c4349f4
3 changed files with 44 additions and 42 deletions

View File

@ -32,6 +32,7 @@
#include <stdlib.h>
#include <ctype.h>
#include "options.h"
#include "utils.h"
#include "upnpglobalvars.h"
struct option * ary_options = NULL;
@ -169,7 +170,7 @@ readoptionsfile(const char * fname)
ary_options = (struct option *)t;
ary_options[num_options-1].id = id;
strncpy(ary_options[num_options-1].value, value, MAX_OPTION_VALUE_LEN);
strncpyt(ary_options[num_options-1].value, value, MAX_OPTION_VALUE_LEN);
}
}