Permalink
Browse files

yay! ebcdic compliance!

  • Loading branch information...
1 parent afb27d6 commit 03165f47dbd7029687906c56e588079e1867ca66 @falconindy committed Dec 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 wakeup.c
View
@@ -164,7 +164,7 @@ parse_timefragment(const char *fragment, struct timespec_t *ts)
default:
if(isdigit(*f)) {
accum *= 10;
- accum += (*f - 48);
+ accum += *f - '0';
} else {
fprintf(stderr, "illegal character in format: %c\n", *f);
return 1;

0 comments on commit 03165f4

Please sign in to comment.