From 312d8340a5e563f1eb5d48e2273b63d73441f920 Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 28 Apr 2008 17:17:32 +0000 Subject: [PATCH] change def of string length --- src/dom/io/uristream.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/dom/io/uristream.cpp b/src/dom/io/uristream.cpp index 3934169c6..b86a71442 100644 --- a/src/dom/io/uristream.cpp +++ b/src/dom/io/uristream.cpp @@ -10,7 +10,7 @@ * Authors: * Bob Jamison * - * Copyright (C) 2005 Bob Jamison + * Copyright (C) 2005-2008 Bob Jamison * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -27,17 +27,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -/** - * Our base String stream classes. We implement these to - * be based on DOMString - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2004 Inkscape.org - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ #include "uristream.h" @@ -99,7 +88,7 @@ void UriInputStream::init() throw (StreamException) data = (unsigned char *) uri.getPath().c_str(); //printf("in data:'%s'\n", data); dataPos = 0; - dataLen = strlen((const char *)data); + dataLen = uri.getPath().size(); break; } -- 2.30.2