diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xfree86/utils/xorgconfig/xorgconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/utils/xorgconfig/xorgconfig.c b/hw/xfree86/utils/xorgconfig/xorgconfig.c index 736b01183..8d9c03f5d 100644 --- a/hw/xfree86/utils/xorgconfig/xorgconfig.c +++ b/hw/xfree86/utils/xorgconfig/xorgconfig.c @@ -2442,7 +2442,7 @@ write_fontpath_section(FILE *f) len = nextdir - thisdir; nextdir++; } - if (len > sizeof(cur)) + if (len >= sizeof(cur)) continue; strncpy(cur, thisdir, len); cur[len] = '\0'; |