-/* File: z-form.c */
+/* File: z-form.c */
/*
* Copyright (c) 1997 Ben Harrison
arg = va_arg(vp, int);
/* Format the argument */
- sprintf(tmp, aux, arg);
+ sprintf(tmp, "%c", arg);
/* Done */
break;
/* Access next argument */
arg = va_arg(vp, unsigned long);
- /* Format the argument */
sprintf(tmp, aux, arg);
}
else
/* Access next argument */
arg = va_arg(vp, unsigned int);
-
- /* Format the argument */
sprintf(tmp, aux, arg);
+
}
/* Done */
arg2[1023] = '\0';
/* Format the argument */
- sprintf(tmp, aux, arg2);
+ sprintf(tmp, aux, arg);
/* Done */
break;
arg = va_arg(vp, vptr);
/* Format the "user data" */
- (void)vstrnfmt_aux(tmp, 1000, aux, arg);
+ sprintf(tmp, aux, arg);
/* Done */
break;
for (q = 0; tmp[q]; q++)
{
/* Notice first non-space */
- if (!isspace(tmp[q]))
+ if (!iswspace(tmp[q]))
{
/* Capitalize if possible */
if (islower(tmp[q]))
- tmp[q] = toupper(tmp[q]);
+ tmp[q] = (char)toupper(tmp[q]);
/* Done */
break;