Przeglądaj źródła

No need to have +1 on sizeof path prefix

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Joachim Nilsson 7 lat temu
rodzic
commit
c9b79b5d85
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/light.h

+ 1
- 1
src/light.h Wyświetl plik

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;