summaryrefslogtreecommitdiff
path: root/devel/cscope/patches/patch-ag
blob: 5ca83c006c8540e9acd7eff758d4673db34f756b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ag,v 1.4 2006/05/29 13:51:20 tron Exp $

--- src/command.c.orig	2002-07-29 13:37:49.000000000 +0100
+++ src/command.c	2006-05-29 14:34:26.000000000 +0100
@@ -718,7 +718,7 @@
 				
 				/* make sure it can be changed */
 				if (access(newfile, WRITE) != 0) {
-					(void) sprintf(msg, "Cannot write to file %s", newfile);
+					(void) snprintf(msg, sizeof(msg), "Cannot write to file %s", newfile);
 					postmsg(msg);
 					anymarked = NO;
 					break;