Changeset 34 for trunk/src/yulectl.c
- Timestamp:
- May 19, 2006, 8:09:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/yulectl.c
r22 r34 392 392 return; 393 393 } 394 if (NULL == fgets(message2, SH_MAXMSG, fp))394 if (NULL == fgets(message2, sizeof(message2), fp)) 395 395 { 396 396 fprintf (stderr, … … 545 545 else 546 546 { 547 fprintf(stderr, "ERROR: this command requires a hostname\n");547 fprintf(stderr, _("ERROR: this command requires a hostname\n")); 548 548 usage(argv[0]); 549 549 return (EXIT_FAILURE); … … 567 567 return (EXIT_FAILURE); 568 568 } 569 #ifdef HAVE_VSNPRINTF 570 snprintf(sockname, size, _("%s/%s.sock"), clientcd, CLIENT); 571 #else 569 572 sprintf(sockname, _("%s/%s.sock"), clientcd, CLIENT); 570 573 #endif 571 574 572 575 /* Make the socket.
Note:
See TracChangeset
for help on using the changeset viewer.