mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
Remove unnecessary breaks...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -142,7 +142,6 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) {
|
|||||||
if ((bufptr + strlen(temp)) > bufend) {
|
if ((bufptr + strlen(temp)) > bufend) {
|
||||||
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
||||||
bufptr = bufend;
|
bufptr = bufend;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
strcpy(bufptr, temp);
|
strcpy(bufptr, temp);
|
||||||
bufptr += strlen(temp);
|
bufptr += strlen(temp);
|
||||||
@@ -168,7 +167,6 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) {
|
|||||||
if ((bufptr + strlen(temp)) > bufend) {
|
if ((bufptr + strlen(temp)) > bufend) {
|
||||||
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
||||||
bufptr = bufend;
|
bufptr = bufend;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
strcpy(bufptr, temp);
|
strcpy(bufptr, temp);
|
||||||
bufptr += strlen(temp);
|
bufptr += strlen(temp);
|
||||||
@@ -187,7 +185,6 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) {
|
|||||||
if ((bufptr + strlen(temp)) > bufend) {
|
if ((bufptr + strlen(temp)) > bufend) {
|
||||||
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
strncpy(bufptr, temp, (size_t)(bufend - bufptr));
|
||||||
bufptr = bufend;
|
bufptr = bufend;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
strcpy(bufptr, temp);
|
strcpy(bufptr, temp);
|
||||||
bufptr += strlen(temp);
|
bufptr += strlen(temp);
|
||||||
|
|||||||
Reference in New Issue
Block a user