Use strncpy() instead of strcpy() to avoid buffer overflows.

2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/decompose.c: Use strncpy() instead of strcpy() to
        avoid buffer overflows.


svn path=/trunk/; revision=22674
This commit is contained in:
Mukund Sivaraman 2007-05-30 17:26:24 +00:00 committed by Mukund Sivaraman
parent f111033d15
commit 5163b6fcd0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-30 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/decompose.c: Use strncpy() instead of strcpy() to
avoid buffer overflows.
2007-05-30 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/compose.c: Specify maximum field width in

View File

@ -1560,7 +1560,7 @@ decompose_dialog (void)
gtk_widget_destroy (dialog);
if (run)
strcpy (decovals.extract_type, extract[extract_idx].type);
strncpy (decovals.extract_type, extract[extract_idx].type, 31);
return run;
}