diff options
Diffstat (limited to 'devel/cscope/patches/patch-aj')
-rw-r--r-- | devel/cscope/patches/patch-aj | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/devel/cscope/patches/patch-aj b/devel/cscope/patches/patch-aj deleted file mode 100644 index 62bfdb92630..00000000000 --- a/devel/cscope/patches/patch-aj +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: patch-aj,v 1.4 2007/01/06 22:45:49 wiz Exp $ - ---- src/edit.c.orig 2006-09-30 10:13:00.000000000 +0200 -+++ src/edit.c -@@ -105,9 +105,9 @@ edit(char *file, char *linenum) - char *s; - - file = filepath(file); -- (void) sprintf(msg, "%s +%s %s", mybasename(editor), linenum, file); -+ (void) snprintf(msg, sizeof(msg), "%s +%s %s", mybasename(editor), linenum, file); - postmsg(msg); -- (void) sprintf(plusnum, lineflag, linenum); -+ (void) snprintf(plusnum, sizeof(plusnum), lineflag, linenum); - /* if this is the more or page commands */ - if (strcmp(s = mybasename(editor), "more") == 0 || strcmp(s, "page") == 0) { - -@@ -132,7 +132,7 @@ filepath(char *file) - static char path[PATHLEN + 1]; - - if (prependpath != NULL && *file != '/') { -- (void) sprintf(path, "%s/%s", prependpath, file); -+ (void) snprintf(path, sizeof(path), "%s/%s", prependpath, file); - file = path; - } - return(file); |