aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r--networking/udhcp/files.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 1b2cc96f4..40cfe9fd2 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -201,9 +201,8 @@ static int FAST_FUNC read_opt(const char *const_line, void *arg)
201#if ENABLE_FEATURE_UDHCP_RFC3397 201#if ENABLE_FEATURE_UDHCP_RFC3397
202 case OPTION_STR1035: 202 case OPTION_STR1035:
203#endif 203#endif
204 length = strlen(val); 204 length = strnlen(val, 254);
205 if (length > 0) { 205 if (length > 0) {
206 if (length > 254) length = 254;
207 opt = val; 206 opt = val;
208 retval = 1; 207 retval = 1;
209 } 208 }