| | |
| | | #endif |
| | | } |
| | | |
| | | void _log(char* format, ...) { |
| | | void _log(const char* format, ...) { |
| | | char logpath[MAX_PATH]; |
| | | va_list args; |
| | | char * buffer; |
| | |
| | | #define LOG_ERROR(M, ...) |
| | | #endif |
| | | |
| | | void _log(char* format, ...); |
| | | void _log(const char* format, ...); |
| | | void _shutdown_log(); |
| | | |
| | | #ifdef __cplusplus |
| | |
| | | |
| | | #include "../base/base.h" |
| | | #include <stddef.h> |
| | | #include <string.h> |
| | | #include <ctype.h> |
| | | #include <sys/types.h> |
| | | #include <unistd.h> |
| | | //definition of size_t |
| | | #include <stdlib.h> |
| | | #ifdef __unix__ |
| | |
| | | if (use_label) { |
| | | if (diskInfos[i].label[0] != 0) { |
| | | memset(identifiers[j], 0, sizeof(PcIdentifier)); //!!!!!!! |
| | | strncpy(identifiers[j], diskInfos[i].label, |
| | | strncpy((char*)identifiers[j], diskInfos[i].label, |
| | | sizeof(PcIdentifier)); |
| | | j++; |
| | | } |