mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-23 12:20:00 +00:00
Merge pull request #105 from diamant3/fix-restrict-warn
fix restrict warning
This commit is contained in:
@@ -251,8 +251,9 @@ void pspDebugKbInit(char* str) {
|
|||||||
break;
|
break;
|
||||||
case 1: // Space
|
case 1: // Space
|
||||||
if (strlen(str) < PSP_DEBUG_KB_MAXLEN) {
|
if (strlen(str) < PSP_DEBUG_KB_MAXLEN) {
|
||||||
snprintf(str, strlen(str)+2, "%s ", str);
|
char out[PSP_DEBUG_KB_MAXLEN + 2];
|
||||||
pspDebugKbDrawString(str);
|
snprintf(out, sizeof(out), "%s ", str);
|
||||||
|
pspDebugKbDrawString(out);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: // Back
|
case 2: // Back
|
||||||
@@ -272,8 +273,9 @@ void pspDebugKbInit(char* str) {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (strlen(str) < PSP_DEBUG_KB_MAXLEN) {
|
if (strlen(str) < PSP_DEBUG_KB_MAXLEN) {
|
||||||
snprintf(str, strlen(str)+2, "%s%c", str, charTable[row][col]);
|
char out[PSP_DEBUG_KB_MAXLEN + 2];
|
||||||
pspDebugKbDrawString(str);
|
snprintf(out, sizeof(out), "%s%c", str, charTable[row][col]);
|
||||||
|
pspDebugKbDrawString(out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user