IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2005, 9:37:43 PM (21 years ago)
Author:
eugene
Message:

fixed va_args error in SendGraphCommandV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.data/open_graph.c

    r3693 r3895  
    266266  if (!Nbyte) return (FALSE);
    267267
     268  va_start (argp, format);
    268269  SendGraphCommand (device, 16, "NBYTES: %6d", Nbyte);
    269270  status = SendGraphCommandV (device, Nbyte, format, argp);
     271  va_end (argp);
    270272  return (status);
    271273}
     
    285287
    286288  int Nbyte;
    287   char *string, tmp;
    288 
    289   Nbyte = vsnprintf (&tmp, 0, format, argp);
    290   if (Nbyte > length) return (FALSE);
     289  char *string, tmp[4];
    291290
    292291  /* I allocated and zero 1 extra byte */
Note: See TracChangeset for help on using the changeset viewer.