mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Allocate MAXPATHLEN size for filename manipulation to avoid risk
of truncation. Bump PORTREVISION. Obtained from: OpenBSD
This commit is contained in:
parent
5c7341baf9
commit
ff0af8db03
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83713
2 changed files with 20 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= gqview
|
||||
PORTVERSION= 1.2.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
19
graphics/gqview/files/patch-src_main_c
Normal file
19
graphics/gqview/files/patch-src_main_c
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- src/main.c.orig Thu Jun 26 21:27:18 2003
|
||||
+++ src/main.c Thu Jun 26 21:28:56 2003
|
||||
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
|
||||
+#include <sys/param.h>
|
||||
#include "gqview.h"
|
||||
|
||||
#include "collect.h"
|
||||
@@ -159,7 +160,7 @@
|
||||
|
||||
void start_editor_from_path_list(gint n, GList *list)
|
||||
{
|
||||
- gchar current_path[512];
|
||||
+ gchar current_path[MAXPATHLEN];
|
||||
gchar *success;
|
||||
gchar *cmd;
|
||||
gchar *buf;
|
Loading…
Add table
Reference in a new issue