diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-02-07 20:33:48 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-02-07 20:33:48 +0000 |
| commit | d8f67662daab00ff6f32f356ba7330836d1f8261 (patch) | |
| tree | 0cb4f4147cbec768c0e14dffee3d89b472e5810b /graphics/dc20ctrl/files/patch-ag | |
| parent | Fix a core dump when doing 'tosha -i'. (Maintainer timeout after about two (diff) | |
Fix overflows and bump PORTREVISION.
Reviewed by: jedgar
Notes
Notes:
svn path=/head/; revision=38077
Diffstat (limited to 'graphics/dc20ctrl/files/patch-ag')
| -rw-r--r-- | graphics/dc20ctrl/files/patch-ag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/dc20ctrl/files/patch-ag b/graphics/dc20ctrl/files/patch-ag new file mode 100644 index 000000000000..afa1b69661ec --- /dev/null +++ b/graphics/dc20ctrl/files/patch-ag @@ -0,0 +1,13 @@ +diff -ru work/dc20ctrl-0.4/convert_pic.c dc20ctrl-0.4/convert_pic.c +--- work/dc20ctrl-0.4/convert_pic.c Tue Feb 17 09:19:46 1998 ++++ convert_pic.c Mon Feb 5 18:43:44 2001 +@@ -166,7 +166,8 @@ + * Remove the extension (.cmt) from the file name + */ + +- strcpy(file, base_name); ++ if (strlcpy(file, base_name, sizeof(file)) >= sizeof(file)) ++ return -1; + if ((extp = strrchr(file, '.')) != NULL) + *extp = '\0'; + |
