~ubuntu-branches/ubuntu/gutsy/hplip/gutsy-security

« back to all changes in this revision

Viewing changes to prnt/hpijs/hplip_api.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2006-09-15 18:00:07 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060915180007-96mez3nck3oy5wij
Tags: 1.6.7-2ubuntu1
* Merge from debian unstable.
* Removed patches 50_ui-supportform-cleanups.dpatch and
  55_ui-supportform-debian.dpatch, there is no support window in the HP
  toolbox any more.
* HPLIP (file io/hpiod/usbext.h) includes linux/compiler.h which is not
  part of Ubuntu Linux and not needed. Removed the include with patch
  80_no-compiler.h.dpatch.
* debian/control: Let the "Conflicts:" of hpijs-ppds be only a "Breaks:"
  to facilitate an update from the previous version when both hpijs and
  hpijs-ppds are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
600
600
/* Get device id string. Assume binary length value at begining of string has been removed. */
601
601
int hplip_GetID(int hd, char *buf, int bufSize)
602
602
{
603
 
   char message[512];  
 
603
   char message[1024+512];
604
604
   int len=0;  
605
605
   MsgAttributes ma;
606
606
 
623
623
   hplip_ParseMsg(buf, len, &ma);
624
624
   if (ma.result == R_AOK)
625
625
   {
626
 
      len = ma.length;
 
626
      len = ma.length < bufSize ? ma.length : bufSize-1;
627
627
      memcpy(buf, ma.data, len);
628
628
      buf[len] = 0;       /* zero terminate */
629
629
   }