diff --git a/udpc_conffile.c b/udpc_conffile.c
index a7baf12..54845c0 100644
--- a/udpc_conffile.c
+++ b/udpc_conffile.c
@@ -115,7 +115,7 @@ int udpc_loadConfig(const char *file, void *data, struct configDesc *desc,
   if(f == NULL)
     /* Config file not found, return */
     return -1;
-  while( (ptr=fgets(buffer, BUFSIZ-1, f))) {
+  while( (ptr=fgets(buffer, BUFSIZE-1, f))) {
     int totalLength = strlen(ptr);
     while(totalLength > 0 && 
 	  (ptr[totalLength-1] == '\n' || ptr[totalLength-1] == '\r')) {
