Fix unix warning about sscanf

This commit is contained in:
mcmullen%netscape.com 1999-04-21 22:55:37 +00:00
parent 69afbec822
commit 9a4af42537
2 changed files with 2 additions and 2 deletions

View File

@ -1527,7 +1527,7 @@ PREF_GetDefaultRectPref(const char *pref_name, int16 *left, int16 *top, int16 *r
PrefResult result = PREF_GetDefaultCharPref(pref_name, (char *)&rectstr, &iLen);
if (result == PREF_NOERROR) {
sscanf(rectstr, "%d,%d,%d,%d", left, top, right, bottom);
sscanf(rectstr, "%hd,%hd,%hd,%hd", left, top, right, bottom);
}
return result;
}

View File

@ -1527,7 +1527,7 @@ PREF_GetDefaultRectPref(const char *pref_name, int16 *left, int16 *top, int16 *r
PrefResult result = PREF_GetDefaultCharPref(pref_name, (char *)&rectstr, &iLen);
if (result == PREF_NOERROR) {
sscanf(rectstr, "%d,%d,%d,%d", left, top, right, bottom);
sscanf(rectstr, "%hd,%hd,%hd,%hd", left, top, right, bottom);
}
return result;
}