Fixed compile error, ‘struct __MoDriv’ has no m ember named ‘errMsg’

This commit is contained in:
Ferdi Franceschini
2013-05-31 08:06:38 +10:00
parent 4a363d0e95
commit 0954c3bceb

View File

@@ -3038,7 +3038,7 @@ static void DMC2280Error(void *pData, int *iCode, char *error, int errLen){
return;
}
strncpy(self->errorMsg, error, (size_t)errLen);
self->errMsg[errLen] = '\0';
self->errorMsg[errLen] = '\0';
}
/** \brief Attempts to recover from an error. Implements the TryAndFixIt