---
 nvbios/nvbios.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nvbios/nvbios.c b/nvbios/nvbios.c
index 4fc667b..7bb768a 100644
--- a/nvbios/nvbios.c
+++ b/nvbios/nvbios.c
@@ -797,9 +797,9 @@ void find_strap(char *filename) {
 
        path = (char*) malloc(base_length + strlen(strap_filename)+1);
        strncpy(path, filename, base_length);
-       strncpy(path+base_length, strap_filename, strlen(strap_filename));
+       strncpy(path+base_length, strap_filename, strlen(strap_filename)+1);
 
-       if(!set_strap_from_file(path))
+       if (!set_strap_from_file(path))
                printf("Strap register found in '%s'\n", path);
 
        free(path);
-- 
1.9.1

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to