Commit d349a25e authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Fix to zap_gadget_string.

parent 9692f02c
......@@ -76,7 +76,7 @@ _kernel_oserror *__zap_gadget_string(char *tm,ComponentID id,int off,const char*
if (e) return e;
e=extract_gadget_info(tm,id,(void **) &p,&l);
if(!e) {
int cl=*(p+ off/sizeof(int));
int cl=*(p+ offlen/sizeof(int));
int rl=string_length((char *)val)+1;
if (cl<rl) e=__zap_gadget(tm,id,offlen,rl);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment