Changeset 34 for trunk/src/yulectl.c


Ignore:
Timestamp:
May 19, 2006, 8:09:51 PM (16 years ago)
Author:
rainer
Message:

Code cleanup and minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/yulectl.c

    r22 r34  
    392392      return;
    393393    }
    394   if (NULL == fgets(message2, SH_MAXMSG, fp))
     394  if (NULL == fgets(message2, sizeof(message2), fp))
    395395    {
    396396      fprintf (stderr,
     
    545545      else
    546546        {
    547           fprintf(stderr, "ERROR: this command requires a hostname\n");
     547          fprintf(stderr, _("ERROR: this command requires a hostname\n"));
    548548          usage(argv[0]);
    549549          return (EXIT_FAILURE);
     
    567567      return (EXIT_FAILURE);
    568568    }
     569#ifdef HAVE_VSNPRINTF
     570  snprintf(sockname, size, _("%s/%s.sock"), clientcd, CLIENT);
     571#else
    569572  sprintf(sockname, _("%s/%s.sock"), clientcd, CLIENT);
    570 
     573#endif
    571574
    572575  /* Make the socket.
Note: See TracChangeset for help on using the changeset viewer.