/*
              LUFA Library
-     Copyright (C) Dean Camera, 2010.
+     Copyright (C) Dean Camera, 2012.
 
   dean [at] fourwalledcubicle [dot] com
-      www.fourwalledcubicle.com
+           www.lufa-lib.org
 */
 
 /*
-  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
   Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
 
 bool ProgrammerConfig_ProcessConfiguration(void)
 {
-       memset(&ProgrammerConfig, sizeof(ProgrammerConfig), 0x00);
+       memset(&ProgrammerConfig, 0x00, sizeof(ProgrammerConfig));
 
        if (!(pf_open("CONF.txt") == FR_OK))
        {
                                                                               &ProgrammerConfig.SigBytes[1],
                                                                               &ProgrammerConfig.SigBytes[2],
                                                                               &ProgrammerConfig.SigBytes[3]);
-
-                       sscanf(CurrentLine, "SPEED = %lu", &ProgrammerConfig.ProgrammingSpeed);
+                                                                                                                                  
+                       sscanf(CurrentLine, "SPEED = %08lu", &ProgrammerConfig.ProgrammingSpeed);
                }
        } while (CurrentLine);