vfwprintf.c (927ecbf3131970f3a11602fee1499bd5ea6eea21) | vfwprintf.c (6180233fd804806e7301790d2330da50ca57e71f) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 889 unchanged lines hidden (view full) --- 898 char *mbp; 899 900 if (convbuf != NULL) 901 free(convbuf); 902 if ((mbp = GETARG(char *)) == NULL) 903 cp = L"(null)"; 904 else { 905 convbuf = __mbsconv(mbp, prec); | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 889 unchanged lines hidden (view full) --- 898 char *mbp; 899 900 if (convbuf != NULL) 901 free(convbuf); 902 if ((mbp = GETARG(char *)) == NULL) 903 cp = L"(null)"; 904 else { 905 convbuf = __mbsconv(mbp, prec); |
906 if (convbuf == NULL) | 906 if (convbuf == NULL) { 907 fp->_flags |= __SERR; |
907 goto error; | 908 goto error; |
909 } |
|
908 cp = convbuf; 909 } 910 } 911 912 if (prec >= 0) { 913 /* 914 * can't use wcslen; can only look for the 915 * NUL in the first `prec' characters, and --- 635 unchanged lines hidden --- | 910 cp = convbuf; 911 } 912 } 913 914 if (prec >= 0) { 915 /* 916 * can't use wcslen; can only look for the 917 * NUL in the first `prec' characters, and --- 635 unchanged lines hidden --- |