Merge pull request #108 from VoiDeD/bug-6187
Fix message string for error 102.
This commit is contained in:
commit
654dcd8ff0
@ -3972,7 +3972,7 @@ static void domethodmap(LayoutSpec spec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((parent = methodmap_find_by_name(str)) == NULL) {
|
if ((parent = methodmap_find_by_name(str)) == NULL) {
|
||||||
error(102, str);
|
error(102, spectype, str);
|
||||||
} else if (parent->spec != spec) {
|
} else if (parent->spec != spec) {
|
||||||
error(129);
|
error(129);
|
||||||
}
|
}
|
||||||
|
@ -95,14 +95,14 @@ static void grow_stgbuffer(char **buffer, int *curmax, int requiredsize)
|
|||||||
* over a few kBytes, there is probably a run-away expression
|
* over a few kBytes, there is probably a run-away expression
|
||||||
*/
|
*/
|
||||||
if (requiredsize>sSTG_MAX)
|
if (requiredsize>sSTG_MAX)
|
||||||
error(102,"staging buffer"); /* staging buffer overflow (fatal error) */
|
error(163); /* staging buffer overflow (fatal error) */
|
||||||
*curmax=requiredsize+sSTG_GROW;
|
*curmax=requiredsize+sSTG_GROW;
|
||||||
if (*buffer!=NULL)
|
if (*buffer!=NULL)
|
||||||
p=(char *)realloc(*buffer,*curmax*sizeof(char));
|
p=(char *)realloc(*buffer,*curmax*sizeof(char));
|
||||||
else
|
else
|
||||||
p=(char *)malloc(*curmax*sizeof(char));
|
p=(char *)malloc(*curmax*sizeof(char));
|
||||||
if (p==NULL)
|
if (p==NULL)
|
||||||
error(102,"staging buffer"); /* staging buffer overflow (fatal error) */
|
error(163); /* staging buffer overflow (fatal error) */
|
||||||
*buffer=p;
|
*buffer=p;
|
||||||
if (clear)
|
if (clear)
|
||||||
**buffer='\0';
|
**buffer='\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user