Fixing the year.
authorviric <viriketo@gmail.com>
Sun, 24 Oct 2010 03:56:19 +0200
changeset 3 5925ce9887c2
parent 2 884635f4a24f
child 4 5e6e113ebd92
Fixing the year.
pce.c
--- a/pce.c	Sun Oct 24 03:54:16 2010 +0200
+++ b/pce.c	Sun Oct 24 03:56:19 2010 +0200
@@ -86,7 +86,7 @@
     // Sample rate
     *( (int *) &buf[12]) = config.time_per_sample;
     // Year
-    *( (int *) &buf[16]) = t->tm_year;
+    *( (int *) &buf[16]) = t->tm_year + 1900;
     // Mintemp
     buf[20] = 0;
     buf[21] = 0;