Browse Source

No need to have +1 on sizeof path prefix

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 6 years ago
parent
commit
c9b79b5d85
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/light.h

+ 1
- 1
src/light.h View File

61
 
61
 
62
 typedef struct {
62
 typedef struct {
63
 	/* Cache file prefix */
63
 	/* Cache file prefix */
64
-	char               prefix[NAME_MAX + 1];
64
+	char               prefix[NAME_MAX];
65
 
65
 
66
 	/* Which controller to use */
66
 	/* Which controller to use */
67
 	light_ctrl_mode_t  ctrl;
67
 	light_ctrl_mode_t  ctrl;