Add the f argument to optparse to avoid segfault.

Otherwise optarg is set to 0, and we segfault when we
 try to strcpy it.
reverse-branch
Paul Tagliamonte 13 years ago
parent 635712322b
commit 85f41f16a1
  1. 2
      ttyclock.c

@ -465,7 +465,7 @@ main(int argc, char **argv)
/* Default blink */
ttyclock->option.blink = False;
while ((c = getopt(argc, argv, "utvsrcihfDBd:C:")) != -1)
while ((c = getopt(argc, argv, "utvsrcihf:DBd:C:")) != -1)
{
switch(c)
{

Loading…
Cancel
Save