aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/patch.c b/toys/patch.c
index 11b4d8aa..58ca5b3f 100644
--- a/toys/patch.c
+++ b/toys/patch.c
@@ -272,7 +272,7 @@ void patch_main(void)
for (s = patchline+4; *s && *s!='\t'; s++)
if (*s=='\\' && s[1]) s++;
i = atoi(s);
- if (i && i<=1970)
+ if (i>1900 && i<=1970)
*name = xstrdup("/dev/null");
else {
*s = 0;