Branch: Tag:

2006-08-02

2006-08-02 15:42:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Various bugfixes for last change.

Rev: src/post_modules/GTK2/source/gladexml.pre:1.9

93:    struct pike_string *fname;    char *root=NULL,*dom=NULL;    INT_TYPE size=0; -  get_all_args("create",args,"%t.%i%s%s",&fname,&size,&root,&dom); +  get_all_args("create",args,"%n.%i%s%s",&fname,&size,&root,&dom);    if (size==0)    gl=glade_xml_new(fname->str,root,dom); -  else if (size==-1) +  else if ((size < 0) || (size > fname->len))    gl=glade_xml_new_from_buffer(fname->str,fname->len,root,dom);    else    gl=glade_xml_new_from_buffer(fname->str,size,root,dom);