summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e51e00)
SCCS-vsn: usr.sbin/timed/timedc/timedc.c 2.7
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)timedc.c 2.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)timedc.c 2.7 (Berkeley) %G%";
#endif /* not lint */
#include "timedc.h"
#endif /* not lint */
#include "timedc.h"
printf("timedc> ");
(void) fflush(stdout);
}
printf("timedc> ");
(void) fflush(stdout);
}
- if (gets(cmdline) == 0)
+ if (fgets(cmdline, sizeof(cmdline), stdin) == 0)
quit();
if (cmdline[0] == 0)
break;
quit();
if (cmdline[0] == 0)
break;