mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
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:
parent
f111033d15
commit
5163b6fcd0
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue