Fix unix warning about sscanf
git-svn-id: svn://10.0.0.236/trunk@28564 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user