WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.1-testing] tools: Use PATH_MAX for pathname char

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] tools: Use PATH_MAX for pathname char arrays.
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Apr 2008 02:02:30 -0700
Delivery-date: Tue, 08 Apr 2008 02:07:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1207317200 -3600
# Node ID fbcc38de52884ea2c0d3cec79c53fe6b7f20c29f
# Parent  74938d1000590600974a0bdc2a5c711106b77623
tools: Use PATH_MAX for pathname char arrays.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17389:633099ff88a848fe0e48dd52d7f3820045c2bf8e
xen-unstable date:        Fri Apr 04 14:49:37 2008 +0100
---
 tools/blktap/drivers/block-qcow.c |    2 +-
 tools/ioemu/block-qcow.c          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 74938d100059 -r fbcc38de5288 tools/blktap/drivers/block-qcow.c
--- a/tools/blktap/drivers/block-qcow.c Thu Apr 03 11:40:31 2008 +0100
+++ b/tools/blktap/drivers/block-qcow.c Fri Apr 04 14:53:20 2008 +0100
@@ -1225,7 +1225,7 @@ int qcow_create(const char *filename, ui
        int shift, length, adjust, flags = 0, ret = 0;
        QCowHeader header;
        QCowHeader_ext exthdr;
-       char backing_filename[1024], *ptr;
+       char backing_filename[PATH_MAX], *ptr;
        uint64_t tmp, size, total_length;
        struct stat st;
 
diff -r 74938d100059 -r fbcc38de5288 tools/ioemu/block-qcow.c
--- a/tools/ioemu/block-qcow.c  Thu Apr 03 11:40:31 2008 +0100
+++ b/tools/ioemu/block-qcow.c  Fri Apr 04 14:53:20 2008 +0100
@@ -537,7 +537,7 @@ static int qcow_create(const char *filen
 {
     int fd, header_size, backing_filename_len, l1_size, i, shift;
     QCowHeader header;
-    char backing_filename[1024];
+    char backing_filename[PATH_MAX];
     uint64_t tmp;
     struct stat st;
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] tools: Use PATH_MAX for pathname char arrays., Xen patchbot-3.1-testing <=