BUG: Token array now terminated by \0
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/**
|
||||
* @name analyze
|
||||
@@ -10,7 +11,8 @@
|
||||
* @brief Analyze the tokens syntax. Return -1 on error and 1 on warning, 0 else.
|
||||
*
|
||||
* @param char* tokens: analyze_tokens
|
||||
* @param char* device: target device
|
||||
*/
|
||||
int analyze (char* tokens);
|
||||
int analyze (char* tokens, char* device);
|
||||
|
||||
#endif//ANALYZER_H
|
||||
|
||||
Reference in New Issue
Block a user