By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1369
Collapse All | Expand All

(-)kdeprint/cups/ipprequest.cpp~ (-8 / +14 lines)
Lines 21-26 Link Here
21
#include "cupsinfos.h"
21
#include "cupsinfos.h"
22
22
23
#include <stdlib.h>
23
#include <stdlib.h>
24
#include <string>
24
#include <cups/language.h>
25
#include <cups/language.h>
25
#include <kdebug.h>
26
#include <kdebug.h>
26
#include <kglobal.h>
27
#include <kglobal.h>
Lines 227-240 Link Here
227
{
228
{
228
	if (!name.isEmpty())
229
	if (!name.isEmpty())
229
	{
230
	{
230
		ipp_attribute_t	*attr = ippAddStrings(request_,(ipp_tag_t)group,(ipp_tag_t)type,name.latin1(),(int)(values.count()),NULL,NULL);
231
		//> Values buffer and references offset prepare
231
		int	i(0);
232
		const char *vlsRefs[values.count()];
232
		for (TQStringList::ConstIterator it=values.begin(); it != values.end(); ++it, i++)
233
		std::string vlsBuf;
233
#ifdef HAVE_CUPS_1_6
234
		for(unsigned i_vl = 0; i_vl < values.count(); i_vl++)
234
			ippSetString(request_, &attr, i, strdup((*it).local8Bit()));
235
		{
235
#else // HAVE_CUPS_1_6
236
		    vlsRefs[i_vl] = (const char*)vlsBuf.size();
236
			attr->values[i].string.text = strdup((*it).local8Bit());
237
		    vlsBuf += values[i_vl].local8Bit();
237
#endif // HAVE_CUPS_1_6
238
		    vlsBuf += (char)0;
239
		}
240
		//> References update to pointers
241
		for(unsigned i_vl = 0; i_vl < values.count(); i_vl++)
242
		    vlsRefs[i_vl] = vlsBuf.data()+(intptr_t)vlsRefs[i_vl];
243
		ippAddStrings(request_,(ipp_tag_t)group,(ipp_tag_t)type,name.latin1(),(int)(values.count()),NULL,(const char**)&vlsRefs);
238
	}
244
	}
239
}
245
}
240
246

Return to bug 1369