X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2F_PDCLIB%2Fscan.c;h=7e6c42c4c53c12e2d1e22e1a98b38b73508e05c1;hp=57f9831e457cd3dc918e4341befb2add07ced794;hb=b43055b06b74c0a45128531e4f18bef0c5a49efc;hpb=25444caf1a2d59e4a2fc8d1058fb0f0a4b9ff731 diff --git a/functions/_PDCLIB/scan.c b/functions/_PDCLIB/scan.c index 57f9831..7e6c42c 100644 --- a/functions/_PDCLIB/scan.c +++ b/functions/_PDCLIB/scan.c @@ -162,7 +162,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status ) status->width = (int)strtol( spec, (char**)&spec, 10 ); if ( spec == prev_spec ) { - status->width = SIZE_MAX; + status->width = INT_MAX; } /* Optional length modifier