comparison tempctrl.c @ 61:9c5db7fee912

Make 'td log' work without printing an error.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 08 Apr 2013 23:11:55 +0930
parents bbdf5642a7b7
children 0916bfe3f418
comparison
equal deleted inserted replaced
60:bbdf5642a7b7 61:9c5db7fee912
525 else { 525 else {
526 if (strlen(argv[1]) > sizeof(settings.logfilefmt) - 1) 526 if (strlen(argv[1]) > sizeof(settings.logfilefmt) - 1)
527 printf("New path too log (%d > %d)\n", strlen(argv[1]), sizeof(settings.logfilefmt)); 527 printf("New path too log (%d > %d)\n", strlen(argv[1]), sizeof(settings.logfilefmt));
528 else 528 else
529 strcpy(settings.logfilefmt, argv[1]); 529 strcpy(settings.logfilefmt, argv[1]);
530 return;
531 } 530 }
531 return;
532 } 532 }
533 533
534 /* Handle setting the multitude of variables 534 /* Handle setting the multitude of variables
535 * It's last to simplify things */ 535 * It's last to simplify things */
536 if (argc < 3) { 536 if (argc < 3) {