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-unstable] tools: Use PATH_MAX for pathname char arr

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools: Use PATH_MAX for pathname char arrays.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Apr 2008 02:01:36 -0700
Delivery-date: Tue, 08 Apr 2008 02:05:14 -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 1207316977 -3600
# Node ID 633099ff88a848fe0e48dd52d7f3820045c2bf8e
# Parent  85d8d3f5c65110e8000ef48f185e12c02754b101
tools: Use PATH_MAX for pathname char arrays.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/blktap/drivers/block-qcow.c |    2 +-
 tools/ioemu/block.c               |    4 ++--
 tools/ioemu/qemu-img.c            |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff -r 85d8d3f5c651 -r 633099ff88a8 tools/blktap/drivers/block-qcow.c
--- a/tools/blktap/drivers/block-qcow.c Fri Apr 04 13:54:05 2008 +0100
+++ b/tools/blktap/drivers/block-qcow.c Fri Apr 04 14:49:37 2008 +0100
@@ -1112,7 +1112,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 85d8d3f5c651 -r 633099ff88a8 tools/ioemu/block.c
--- a/tools/ioemu/block.c       Fri Apr 04 13:54:05 2008 +0100
+++ b/tools/ioemu/block.c       Fri Apr 04 14:49:37 2008 +0100
@@ -347,8 +347,8 @@ int bdrv_open2(BlockDriverState *bs, con
                BlockDriver *drv)
 {
     int ret, open_flags;
-    char tmp_filename[1024];
-    char backing_filename[1024];
+    char tmp_filename[PATH_MAX];
+    char backing_filename[PATH_MAX];
     
     bs->read_only = 0;
     bs->is_temporary = 0;
diff -r 85d8d3f5c651 -r 633099ff88a8 tools/ioemu/qemu-img.c
--- a/tools/ioemu/qemu-img.c    Fri Apr 04 13:54:05 2008 +0100
+++ b/tools/ioemu/qemu-img.c    Fri Apr 04 14:49:37 2008 +0100
@@ -594,8 +594,8 @@ static int img_info(int argc, char **arg
     BlockDriverState *bs;
     char fmt_name[128], size_buf[128], dsize_buf[128];
     int64_t total_sectors, allocated_size;
-    char backing_filename[1024];
-    char backing_filename2[1024];
+    char backing_filename[PATH_MAX];
+    char backing_filename2[PATH_MAX];
     BlockDriverInfo bdi;
 
     fmt = NULL;

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

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