Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37733779
en ru br
ALT Linux repos
S:4.6.1-alt8
5.0: 4.5.1-alt3.git20090319.M50.1
3.0: 4.0.2-alt1

Group :: Development/C++
RPM: wvstreams

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: wvstreams-3.75.0-rh-stringbuf.patch
Download


diff -ur wvstreams-3.75.0/include/wvstring.h wvstreams-3.75.0.new/include/wvstring.h
--- wvstreams-3.75.0/include/wvstring.h	2004-03-13 19:59:36.000000000 +0100
+++ wvstreams-3.75.0.new/include/wvstring.h	2004-07-28 15:32:50.236903510 +0200
@@ -18,6 +18,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stddef.h>
 
 
 /*
@@ -66,7 +67,7 @@
 
 // the _actual_ space taken by a WvStringBuf, without the data[] array
 // (which is variable-sized, not really 1 byte)
-#define WVSTRINGBUF_SIZE(s) (s->data - (char *)s)
+#define WVSTRINGBUF_SIZE(s) (offsetof(struct WvStringBuf, data))
 
 /**
  * A WvFastString acts exactly like a WvString, but can take (const char *)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin