mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
fix bug in stock
This commit is contained in:
parent
9a50e0ed19
commit
343a2f6842
@ -142,10 +142,10 @@ static struct text_object *create_plain_text(const char *s)
|
|||||||
void stock_parse_arg(struct text_object *obj, const char *arg)
|
void stock_parse_arg(struct text_object *obj, const char *arg)
|
||||||
{
|
{
|
||||||
char stock[8];
|
char stock[8];
|
||||||
char data[8];
|
char data[16];
|
||||||
|
|
||||||
obj->data.s = NULL;
|
obj->data.s = NULL;
|
||||||
if(sscanf(arg, "%7s %7s", stock, data) != 2) {
|
if(sscanf(arg, "%7s %15s", stock, data) != 2) {
|
||||||
NORM_ERR("wrong number of arguments for $stock");
|
NORM_ERR("wrong number of arguments for $stock");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user